import math


def angle(p):
    """
    p = (x, y), return angle from y axis
    """
    x, y = p
    p = x, -y
    a = math.pi / 2 - math.atan2(*reversed(p))
    if a < 0:
        a += 2 * math.pi
    return a