def domain(x, y, s_w, s_h):

    """
    The function estimates the rectangle that includes the given point.

    Arguments:
        x and y coordinates of the point and width and height of the screen

    Return:
        integer 0 <= n <= 5
    """
    
    if x < s_w / 3:
        return 0 if y < s_h / 2 else 3
    if s_w / 3 < x < s_w * 2 / 3:
        return 1 if y < s_h / 2 else 4
    if x > s_w * 2 / 3:
        return 2 if y < s_h / 2 else 5