def squareSpiralCorners(side):
    """Returns the four corners of a spiral square in the given side length.

    The corners are returned in a tuple in the order:
    (topRight, topLeft, bottomLeft, bottomRight)
    """
    botR = side * side
    botL = botR - side + 1
    topL = botL - side + 1
    topR = topL - side + 1
    return (topR, topL, botL, botR)