{"problem":{"name":"A. Infinity Gauntlet","description":{"content":"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","description_type":"Markdown"},"platform":"Codeforces","limit":{"time_limit":1000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"CF987A"},"statements":[{"statement_type":"Markdown","content":"You took a peek on Thanos wearing Infinity Gauntlet. In the Gauntlet there is a place for six Infinity Gems:\n\n*   the _Power_ Gem of _purple_ color,\n*   the _Time_ Gem of _green_ color,\n*   the _Space_ Gem of _blue_ color,\n*   the _Soul_ Gem of _orange_ color,\n*   the _Reality_ Gem of _red_ color,\n*   the _Mind_ Gem of _yellow_ color.\n\nUsing colors of Gems you saw in the Gauntlet determine the names of **absent** Gems.\n\n## Input\n\nIn the first line of input there is one integer $n$ ($0 \\le n \\le 6$) — the number of Gems in Infinity Gauntlet.\n\nIn 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.\n\n## Output\n\nIn the first line output one integer $m$ ($0 \\le m \\le 6$) — the number of absent Gems.\n\nThen 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.\n\n[samples]\n\n## Note\n\nIn the first sample Thanos already has _Reality_, _Power_, _Mind_ and _Soul_ Gems, so he needs two more: _Time_ and _Space_.\n\nIn the second sample Thanos doesn't have any Gems, so he needs all six.","is_translate":false,"language":"English"},{"statement_type":"Markdown","content":"你偷看了一眼灭霸佩戴的无限手套。手套中有六个无限宝石的位置：\n\n根据你在手套中看到的宝石颜色，确定缺失的宝石名称。\n\n输入的第一行包含一个整数 $n$ ($0 lt.eq n lt.eq 6$) —— 无限手套中宝石的数量。\n\n接下来的 $n$ 行是你要查看的宝石颜色。使用的颜色词为：_purple_、_green_、_blue_、_orange_、_red_、_yellow_。保证所有颜色互不相同，且所有颜色均为小写英文单词。\n\n第一行输出一个整数 $m$ ($0 lt.eq m lt.eq 6$) —— 缺失宝石的数量。\n\n接下来的 $m$ 行，每行输出一个缺失宝石的名称。使用的名称词为：_Power_、_Time_、_Space_、_Soul_、_Reality_、_Mind_。名称可以按任意顺序输出，但需保持首字母大写，其余字母小写。\n\n在第一个样例中，灭霸已经拥有 _Reality_、_Power_、_Mind_ 和 _Soul_ 宝石，因此他还需要两个：_Time_ 和 _Space_。\n\n在第二个样例中，灭霸没有任何宝石，因此他需要全部六个。\n\n## Input\n\n输入的第一行包含一个整数 $n$ ($0 lt.eq n lt.eq 6$) —— 无限手套中宝石的数量。接下来的 $n$ 行是你要查看的宝石颜色。使用的颜色词为：_purple_、_green_、_blue_、_orange_、_red_、_yellow_。保证所有颜色互不相同，且所有颜色均为小写英文单词。\n\n## Output\n\n第一行输出一个整数 $m$ ($0 lt.eq m lt.eq 6$) —— 缺失宝石的数量。然后在 $m$ 行中，每行输出一个缺失宝石的名称。使用的名称词为：_Power_、_Time_、_Space_、_Soul_、_Reality_、_Mind_。名称可以按任意顺序输出，但需保持首字母大写，其余字母小写。\n\n[samples]\n\n## Note\n\n在第一个样例中，灭霸已经拥有 _Reality_、_Power_、_Mind_ 和 _Soul_ 宝石，因此他还需要两个：_Time_ 和 _Space_。在第二个样例中，灭霸没有任何宝石，因此他需要全部六个。","is_translate":true,"language":"Chinese"},{"statement_type":"Markdown","content":"**Definitions:**\n\nLet $ C = \\{ \\text{purple}, \\text{green}, \\text{blue}, \\text{orange}, \\text{red}, \\text{yellow} \\} $ be the set of observed gem colors.  \nLet $ N = \\{ \\text{Power}, \\text{Time}, \\text{Space}, \\text{Soul}, \\text{Reality}, \\text{Mind} \\} $ be the set of all gem names.  \n\nDefine a bijection $ f: C \\to N $ as follows:  \n- $ f(\\text{purple}) = \\text{Soul} $  \n- $ f(\\text{green}) = \\text{Time} $  \n- $ f(\\text{blue}) = \\text{Space} $  \n- $ f(\\text{orange}) = \\text{Power} $  \n- $ f(\\text{red}) = \\text{Reality} $  \n- $ f(\\text{yellow}) = \\text{Mind} $  \n\n**Given:**  \n- Integer $ n $, $ 0 \\leq n \\leq 6 $  \n- Set $ C_{\\text{obs}} \\subseteq C $, $ |C_{\\text{obs}}| = n $, with distinct colors  \n\n**Objective:**  \nCompute the set of absent gem names:  \n$$\nN_{\\text{absent}} = N \\setminus f(C_{\\text{obs}})\n$$\n\nOutput:  \n- $ m = |N_{\\text{absent}}| $  \n- The elements of $ N_{\\text{absent}} $, one per line","is_translate":false,"language":"Formal"}],"meta":{"iden":"CF987A","tags":["implementation"],"sample_group":[["4\nred\npurple\nyellow\norange","2\nSpace\nTime"],["0","6\nTime\nMind\nSoul\nPower\nReality\nSpace"]],"created_at":"2026-03-03 11:00:39"}}