def viewDimensionsFromN(n=1):
    """
    Compute the number of horizontal and vertical views needed to reach at least n views.
    Returns a pair of numbers.
    """
    h = 0
    w = 0
    while True:
        if h * w >=n:
            break
        h += 1
        if h * w >= n:
            break
        w += 1
    return (h, w)