from operator import mod


def square_rotate_90(x, y, n = 1):
    """Rotates the given square n * 90 degrees counter clockwise around the (0, 0) square,
    and returns the co-ordinates of the new square."""
    n = mod(n, 4)
    if n == 0:
        return (x, y)
    if n == 1:
        return (-y, x)
    if n == 2:
        return (-x, -y)
    if n == 3:
        return (y, -x)