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.util.*;
import java.lang.*;
import java.io.*;
/*
* The game starts with row of coins and a player can choose any of the two extreem coins in his turn. the goal here is to maximise the
* individual score.
*/
public final class Main {
    static int[] coin;
    static int[][] memo;
	public static void main (String[] args) throws java.lang.Exception {
	    Scanner in=new Scanner(System.in);
	    String[][] gems=new String[6][2];
	    gems[1][0]="purple";
	     gems[1][1]="Power";
	      gems[2][0]="green";
	     gems[2][1]="Time";
	      gems[0][0]="blue";
	     gems[0][1]="Space";
	       gems[3][0]="orange";
	     gems[3][1]="Soul";
	      gems[4][0]="red";
	     gems[4][1]="Reality";
	      gems[5][0]="yellow";
	     gems[5][1]="Mind";
	    int[] stat=new int[6];
        int n=in.nextInt();
       if(n>0) in.nextLine();
        for(int i=0;i<n;i++){
            String s=in.nextLine(); 
            for(int j=0;j<6;j++){
                if(gems[j][0].equals(s)){
                    stat[j]=1;
                    break;
                }
            }
        }
        int no=0;
        String ans="";
        for(int i=0;i<6;i++){
            if(stat[i]==0){
                no++;
                if(no==1)
                ans+=gems[i][1];
                else{
                    ans+=System.lineSeparator()+gems[i][1];
                }
            }
        }
	    System.out.println(no);
	    System.out.println(ans);    
	}
   
}