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 \le n \le 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 \le m \le 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.

Difficulty: interview

Starter code:

Solutions:
n = int(input())
a = [input() for i in range(n)]
sol = []
for i in range(6):
    c = ['purple', 'green', 'blue', 'orange', 'red', 'yellow'][i]
    if c not in a:
        sol.append(['Power', 'Time', 'Space', 'Soul', 'Reality', 'Mind'][i])
print(len(sol))
for i in sol:
    print(i)


n = int(input())

names = []
for _ in range(n):
    names.append(input().strip())

names = set(names)

stones = {
    'purple': 'Power',
    'green': 'Time',
    'blue': 'Space',
    'orange': 'Soul',
    'red': 'Reality',
    'yellow': 'Mind',
}

missing = set(stones.keys()) - names
print(len(missing))
print('\n'.join(stones[v] for v in missing))



n = int(input())
a = {'purple':'Power', 'green' : 'Time', 'blue' : 'Space', 'orange' : 'Soul', 'red' : 'Reality', 'yellow' : 'Mind'}
for _ in range(n):
	s = input()
	a[s] = 1
print (6-n)
for i in a:
	if a[i]!=1:
		print (a[i])

'''input
4
red
purple
yellow
orange

'''

def list_input():
    return list(map(int,input().split()))
def map_input():
    return map(int,input().split())
def map_string():
    return input().split()
    
n = int(input())    
d = {}
d["purple"] = "Power"
d["green"] = "Time"
d["blue"] = "Space"
d["orange"] = "Soul"
d["red"] = "Reality"
d["yellow"] = "Mind"

a = []
for i in range(n): a.append(input())
b = []
for i in d:
	if i not in a:
		b.append(d[i])
print(len(b))
for i in b: print(i)		

n = int(input())
d = {"purple":"Power","green":"Time","blue":"Space","orange":"Soul","red":"Reality","yellow":"Mind"}
for i in range(n):
    s = input()
    del(d[s])
print(len(d))
for k in d:
    print(d[k])


n = int(input())
a = {'Power','Time','Space','Soul','Reality','Mind'}
for i in range(n):
	s = input()
	if s == 'red':
		a.remove('Reality')
	elif s == 'purple':
		a.remove('Power')
	elif s == 'green':
		a.remove('Time')
	elif s == 'blue':
		a.remove('Space')
	elif s == 'orange':
		a.remove('Soul')
	elif s == 'yellow':
		a.remove('Mind')
print(len(a))
for i in a:
	print(i)


# cook your dish here
# from math import * 
d = {"Power":"purple","Time":"green","Space":"blue","Soul":"orange","Reality":"red","Mind":"yellow"}; 
n = int(input())
l =[]
for _ in range(n):
    l.append(input())
print(6-n)
for ele in d:
    if d[ele] not in l:
        print(ele)

from copy import deepcopy
import itertools
from bisect import bisect_left

def read():
    return int(input())


def readmap():
    return list(map(int, input().split()))


def readlist():
    return list(map(int, input().split()))


color = ["purple", "green", "blue", "orange", "red", "yellow"]
gem = ["Power", "Time", "Space", "Soul", "Reality", "Mind"]

N = int(input())
s = set()
for _ in range(N):
    s.add(input())

m = 6 - N
print(m)
for i in range(6):
    if not color[i] in s:
        print(gem[i])



n = int(input())
ans = ['Power', 'Time', 'Space', 'Soul', 'Reality', 'Mind']
for i in range(n):
    s = input()
    if s == 'purple':
        del ans[ans.index('Power')]
    elif s == 'green':
        del ans[ans.index('Time')]
    elif s == 'blue':
        del ans[ans.index('Space')]
    elif s == 'orange':
        del ans[ans.index('Soul')]
    elif s == 'red':
        del ans[ans.index('Reality')]
    else:
        del ans[ans.index('Mind')]
print(len(ans))
for a in ans:
    print(a)


n = int(input())
s = {'purple': "Power", "green": "Time", "blue":"Space", "orange":"Soul", "red":"Reality", "yellow":"Mind"}
for i in range(n):
    u = input()
    s.pop(u)
print(6-n)
for i in s:
    print(s[i])

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue May 29 21:01:01 2018

@st0rmbring3r
"""
# l = [int(x) for x in input().split()]

d2 = {'Power':'purple','Time':'green','Space': 'blue','Soul': 'orange','Reality': 'red','Mind': 'yellow'}
d1 = {d2[x]:x for x in d2}
# color: power
s = set(y for y in d1)

for _ in range(int(input())):
    s.remove(input())

print(len(s))
for x in s:
    print(d1[x])

d={"purple":"Power","green":"Time","blue":"Space","orange":"Soul","red":"Reality","yellow":"Mind"}
n=int(input())
temp=set()
for i in range(n):
    temp|={d[input()]}
#m,n=list(map(int,input().split()))
#a=list(map(int,input().split()))
#ans=0
ans=set()
for i in d:
    ans|={d[i]}
ans=ans-temp
print(len(ans))
for i in ans:
    print(i)

n = int(input())
a = []
b = ["red",
"purple",
"yellow",
"orange",
"blue",
"green"]

x = {"purple" : "Power",
"blue" : "Space",
"orange" : "Soul",
"yellow" : "Mind",
"green" : "Time",
"red" : "Reality",}
for i in range(n):
    a.append(input())
ans = []
for i in b:
    if i not in a:
        ans.append(x[i])
print(len(ans))
for i in ans:
    print(i)

n = int(input())
a = ['purple', 'green', 'blue', 'orange', 'red', 'yellow']
b = ['Power', 'Time', 'Space', 'Soul', 'Reality', 'Mind']
for i in range(n):
    s = input()
    i = a.index(s)
    a.pop(i)
    b.pop(i)
print(6-n)
for i in b:print(i)


n=int(input())
s=set()
m={"purple":"Power","green":"Time","blue":"Space","orange":"Soul","red":"Reality","yellow":"Mind"}
l=[ 'purple', 'green', 'blue', 'orange', 'red', 'yellow']
for i in range(n):
      ch=input()
      s.add(ch)
l1=[]
for i in l:
      if i not in s:
            l1.append(i)
print(len(l1))
for i in l1:
      print(m[i])


n = int(input())
l = ['Power','Time','Space','Soul','Reality','Mind']
a = ['purple','green','blue','orange','red','yellow']
x = []
for i in range(n):
    s = input()
    x.append(s)
print(6-len(x))
for i in a:
    if(i not in x):
        print(l[a.index(i)])

gems = {'purple':'Power', 'green':'Time', 'blue':'Space', 'orange':'Soul','red':'Reality','yellow':'Mind' }

N = int(input())
arr = []

for i in range(N):
    del gems[input()]

print(len(gems))
for cols in gems:
    print(gems[cols])



n = int(input())
s = []
for i in range(n):
	a = input()
	s.append(a)

print(6-n)
if "purple" not in s:
	print ("Power")
if "green" not in s:
	print ("Time")
if "blue" not in s:
	print ("Space")
if "orange" not in s:
	print("Soul")
if "red" not in s:
	print("Reality")
if "yellow" not in s:
	print("Mind")

n = int(input())
inpL = []
for z in range(n):
    inpL.append(str(input()))
print(6-n)

if "purple" not in inpL:
    print("Power")
if "green" not in inpL:
    print("Time")
if "blue" not in inpL:
    print("Space")
if "yellow" not in inpL:
    print("Mind")
if "red" not in inpL:
    print("Reality")
if "orange" not in inpL:
    print("Soul")


n=int(input())
a=[]
d={}
d['purple']='Power'
d['green']='Time'
d['blue']='Space'
d['orange']='Soul'
d['red']='Reality'
d['yellow']='Mind'
for i in range(n):
	a.append(input())
b=[]
print(6-n)
for i in d:
	if i not in a:
		print(d[i])


n=int(input())
ar=[]
for i in range(n):
    s=input()
    if(s=="purple"):
        ar.append("Power")
    if(s=="green"):
        ar.append("Time")
    if(s=="blue"):
        ar.append("Space")
    if(s=="orange"):
        ar.append("Soul")
    if(s=="red"):
        ar.append("Reality")
    if(s=="yellow"):
        ar.append("Mind")
ans=["Mind","Reality","Soul","Space","Time","Power"]
a=[]
for x in ans:
    if(x in ar):
        continue
    a.append(x)
print(len(a))
for x in a:
    print(x)
    


t=int(input())
#l=list(map(int,input().strip().split()))
#n,m=map(int,input().strip().split())
d={"red":"Reality","purple":"Power","green":"Time","blue":"Space","orange":"Soul","yellow":"Mind"}
l=list(d.values())
for i in range(t):
	r=input()
	l.remove(d[r])
print (len(l))
for y in l:
	print (y)

a = int(input())
c = set()
for i in range(a):
    b = input()
    c.add(b)
d = []
if 'purple' not in c:
    d.append('Power')
if 'green' not in c:
    d.append('Time')
if 'blue' not in c:
    d.append('Space')
if 'orange' not in c:
    d.append('Soul')
if 'red' not in c:
    d.append('Reality')
if 'yellow' not in c:
    d.append('Mind')
print(len(d))
for i in d:
    print(i)


mp = {
'purple' : 'Power',
'green' : 'Time',
'blue' : 'Space',
'orange' : 'Soul',
'red' : 'Reality',
'yellow' : 'Mind',
}
n = int(input())
L = ['Power', 'Time', 'Space', 'Soul', 'Reality', 'Mind']
for _ in range(n):
    co = input().strip()
    L.remove(mp[co])
print(len(L))
for x in L:
    print(x)