def flip_corner(corner: tuple) -> tuple:
    """
    Flip a tuple of a variable amount of sides

    :param corner: tuple with number of sides
    :return: flipped clock-wise tuple
    """

    fliped_sides: list[str] = list()
    for s in corner:
        if s == 'N':
            fliped_sides.append('W')
        elif s == 'E':
            fliped_sides.append('S')
        elif s == 'S':
            fliped_sides.append('E')
        elif s == 'W':
            fliped_sides.append('N')
    return tuple(fliped_sides)