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 JAVA):

Solution:

import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Scanner;

public class main {
	public static void main (String[] args) throws java.lang.Exception {
		Scanner in= new Scanner (System.in);
		int n= in.nextInt();
		if(n==0)
		{
			System.out.println(6-n);

			System.out.println("Power");
			System.out.println("Time");
			System.out.println("Space");
			System.out.println("Soul");
			System.out.println("Reality");
			System.out.println("Mind");
			System.exit(0);
		}
		
		if(n>6 || n<0)
		{
			System.exit(0);
		}
		String [] array1 = new String [n];
		ArrayList<String> inputlist=new ArrayList<>();

		for(int i=0; i<n; i++)
		{
			array1[i]=in.next();
		}
		for(int j=0; j<n; j++)
		{	
		inputlist.add(array1[j]);
		}
		int count1=0;
		int count2=0;
		int count3=0;
		int count4=0;
		int count5=0;
		int count6=0;


	System.out.println(6-n);

	for(int g=0; g<inputlist.size(); g++)
	{
		if(inputlist.indexOf("purple")!=0 && inputlist.indexOf("purple")!=1 && inputlist.indexOf("purple")!=2 && inputlist.indexOf("purple")!=3 && inputlist.indexOf("purple")!=4 && inputlist.indexOf("purple")!=5    )
		{
			count1++;		}
		if(inputlist.indexOf("green")!=0 && inputlist.indexOf("green")!=1 && inputlist.indexOf("green")!=2 && inputlist.indexOf("green")!=3 && inputlist.indexOf("green")!=4 && inputlist.indexOf("green")!=5    )
		{
			count2++;		}
		if(inputlist.indexOf("blue")!=0 && inputlist.indexOf("blue")!=1 && inputlist.indexOf("blue")!=2 && inputlist.indexOf("blue")!=3 && inputlist.indexOf("blue")!=4 && inputlist.indexOf("blue")!=5    )
		{
			count3++;		}
		if(inputlist.indexOf("orange")!=0 && inputlist.indexOf("orange")!=1 && inputlist.indexOf("orange")!=2 && inputlist.indexOf("orange")!=3 && inputlist.indexOf("orange")!=4 && inputlist.indexOf("orange")!=5    )
		{
			count4++;		}
		if(inputlist.indexOf("yellow")!=0 && inputlist.indexOf("yellow")!=1 && inputlist.indexOf("yellow")!=2 && inputlist.indexOf("yellow")!=3 && inputlist.indexOf("yellow")!=4 && inputlist.indexOf("yellow")!=5    )
		{
			count5++;		}
		if(inputlist.indexOf("red")!=0 && inputlist.indexOf("red")!=1 && inputlist.indexOf("red")!=2 && inputlist.indexOf("red")!=3 && inputlist.indexOf("red")!=4 && inputlist.indexOf("red")!=5    )
		{
			count6++;		}
	}
	if(count1!=0)
	{
		System.out.println("Power");
	}
	if(count2!=0)
	{
		System.out.println("Time");
	}
	if(count3!=0)
	{
		System.out.println("Space");
	}
	if(count4!=0)
	{
		System.out.println("Soul");
	}
	if(count6!=0)
	{
		System.out.println("Reality");
	}
	if(count5!=0)
	{
		System.out.println("Mind");
	}
	
	}
}