def isPointInRect(p, rect):
    if ((rect[0] <= p[0]) and (rect[1] <= p[1]) and (p[0] <= rect[2]) and (p[1] <= rect[3])):
        return True
    else:
        return False
def isPointInRect(p, rect):
    if ((rect[0] <= p[0]) and (rect[1] <= p[1]) and (p[0] <= rect[2]) and (p[1] <= rect[3])):
        return True
    else:
        return False