Codeforces Round 485 (Div. 2)
A
Infinity Gauntlet
Codeforces
800
原题
←B →
翻译中…

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.

翻译中…

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.

翻译中…

样例

Input #1
4
red
purple
yellow
orange
Output #1
2
Space
Time
InputCopy OutputCopy
Input #2
0
Output #2
6
Time
Mind
Soul
Power
Reality
Space
InputCopy OutputCopy
题目信息
题号
987A
时间限制
1 s
内存限制
256 MB
标签
模拟

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。