# CF987A Infinity Gauntlet

• 106通过
• 170提交
• 题目来源
• 评测方式 RemoteJudge
• 标签 字符串 概率论,统计
• 难度 入门难度
• 时空限制 1000ms / 256MB
• 提示：收藏到任务计划后，可在首页查看。

# 题目大意

你偷看了Thanos的无尽手套，手套上有6颗无限宝石：

• 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. 黄色的心灵宝石

现在给出你偷看到的宝石的颜色，请你确定缺少了哪些宝石（名称

# 输入输出格式

## 输入格式

第一行一个整数 $n(0≤n≤6)$ ,表示你看到的宝石数量

下面 $n$ 行，每行一个字符串，表示你看到宝石的颜色，所有字符串都是小写的。

## 输出格式

第一行一个整数 $m(0≤m≤6)$ ，表示缺少的宝石的个数

下面 $m$ 行，每行一个宝石的名字，顺序随意，名字首字母要记得大写，其他小写

感谢@二元长天笑 提供的翻译

## 题目描述

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.

## 输入输出格式

输入格式：

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.

输出格式：

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.

## 输入输出样例

输入样例#1： 复制
4
red
purple
yellow
orange

输出样例#1： 复制
2
Space
Time

输入样例#2： 复制
0

输出样例#2： 复制
6
Time
Space
Power
Reality
Mind
Soul


## 说明

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.

提示
标程仅供做题后或实在无思路时参考。
请自觉、自律地使用该功能并请对自己的学习负责。
如果发现恶意抄袭标程，将按照I类违反进行处理。