#include <bits/stdc++.h>
using namespace std;
string s[10];
bool vis[7];
void check(string a) {
  if (a == "purple") vis[1] = 1;
  if (a == "green") vis[2] = 1;
  if (a == "blue") vis[3] = 1;
  if (a == "orange") vis[4] = 1;
  if (a == "red") vis[5] = 1;
  if (a == "yellow") vis[6] = 1;
  return;
}
int main() {
  map<int, string> mp;
  mp.insert(pair<int, string>(1, "Power"));
  mp.insert(pair<int, string>(2, "Time"));
  mp.insert(pair<int, string>(3, "Space"));
  mp.insert(pair<int, string>(4, "Soul"));
  mp.insert(pair<int, string>(5, "Reality"));
  mp.insert(pair<int, string>(6, "Mind"));
  int n;
  while (cin >> n) {
    for (int i = 0; i < n; ++i) {
      cin >> s[i];
      check(s[i]);
    }
    cout << 6 - n << '\n';
    for (int i = 1; i <= 6; ++i)
      if (!vis[i]) {
        map<int, string>::iterator a = mp.find(i);
        cout << a->second << '\n';
      }
  }
  return 0;
}
