import math


def get_col_row(length: int) -> tuple:
    """
    The size of the rectangle (r x c) should be decided
    by the length of the message, such that c >= r and
    c - r <= 1, where c is the number of columns and r
    is the number of rows.
    :param length:
    :return:
    """
    r = int(math.sqrt(length))
    c = int(math.ceil(math.sqrt(length)))

    if r * c < length:
        r += 1

    return c, r