Problem: You took a peek on Thanos wearing Infinity Gauntlet. In the Gauntlet there is a place for six Infinity Gems:

  * the Power Gem of purple color, 
  * the Time Gem of green color, 
  * the Space Gem of blue color, 
  * the Soul Gem of orange color, 
  * the Reality Gem of red color, 
  * the Mind Gem of yellow color. 



Using colors of Gems you saw in the Gauntlet determine the names of absent Gems.

Input

In the first line of input there is one integer n (0 ≤ n ≤ 6) — the number of Gems in Infinity Gauntlet.

In next n lines there are colors of Gems you saw. Words used for colors are: purple, green, blue, orange, red, yellow. It is guaranteed that all the colors are distinct. All colors are given in lowercase English letters.

Output

In the first line output one integer m (0 ≤ m ≤ 6) — the number of absent Gems.

Then in m lines print the names of absent Gems, each on its own line. Words used for names are: Power, Time, Space, Soul, Reality, Mind. Names can be printed in any order. Keep the first letter uppercase, others lowercase.

Examples

Input

4
red
purple
yellow
orange


Output

2
Space
Time


Input

0


Output

6
Time
Mind
Soul
Power
Reality
Space

Note

In the first sample Thanos already has Reality, Power, Mind and Soul Gems, so he needs two more: Time and Space.

In the second sample Thanos doesn't have any Gems, so he needs all six.

Solution (in PYTHON3):

Solution:
"""
Usage:
    python solution.py < input.txt > solution_output.txt

Testing:
    pytest test_solution.py
"""


def get_input() -> str:
    """
    Loops throw the stdio to fetch input data
    It may change according to the input of the problem
    Args:
        inputs_number: Number of lines of the input
                       Needs to be manually changed in case of
                       multiple lines input
    Returns:
        raw_input_data: The input of a problem
    """
    raw_input_data = ""
    number_of_gems = input()
    try:
        for _ in range(int(number_of_gems)):
            raw_input_data += input() + "\n"
    except:
        pass
    return raw_input_data


def process_input(raw_input_data: str):
    """
    Here the goal is to make the raw input
    equals to the input provided by the problem example
    (like the input strings on the test_solution.py)
    Args:
        raw_input_data:

    Returns:
        data: formatted string
    """
    data = raw_input_data.strip()
    return data


def solve(raw_input_data):
    """
    Here you solve the problem, happy coding!!
    Args:
        raw_input_data: the output of the get_input() function

    Returns:
        n: the solution of the problem
    """
    present_gems = process_input(raw_input_data).split("\n")
    
    infinity_gems = {
        "purple": "Power",
        "green": "Time",
        "blue": "Space",
        "orange": "Soul",
        "red": "Reality",
        "yellow": "Mind",
    }
    
    if len(present_gems[0]) > 1:
        answer = str(6 - len(present_gems)) + "\n"
    
        for gem in present_gems:
            infinity_gems.pop(gem)
    else:
        answer = str(6) + "\n"
        
    for gem in infinity_gems.values():
        answer += gem + "\n"
    
    return answer[:-1]


if __name__ == "__main__":

    # Change input lines number here
    while True:
        try:
            input_data = get_input()
            answer = solve(input_data)
            print(answer)
        except:
            break