#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  scanf("%d", &n);
  char s[100];
  unordered_map<string, pair<string, int>> m;
  unordered_map<string, pair<string, int>>::iterator it;
  m["purple"] = make_pair("Power", 0);
  m["green"] = make_pair("Time", 0);
  m["blue"] = make_pair("Space", 0);
  m["orange"] = make_pair("Soul", 0);
  m["red"] = make_pair("Reality", 0);
  m["yellow"] = make_pair("Mind", 0);
  for (int i = 0; i < n; ++i) {
    scanf("%s", s);
    m[s].second = 1;
  }
  printf("%d\n", (6 - n));
  for (it = m.begin(); it != m.end(); it++) {
    if ((*it).second.second == 0) {
      cout << (*it).second.first << endl;
    }
  }
  return 0;
}
