#include <bits/stdc++.h>
using namespace std;
int main() {
  map<string, string> mp = {{"green", "Time"},  {"yellow", "Mind"},
                            {"orange", "Soul"}, {"purple", "Power"},
                            {"blue", "Space"},  {"red", "Reality"}};
  int i;
  cin >> i;
  for (; i; i--) {
    string s;
    cin >> s;
    mp.erase(s);
  }
  cout << mp.size() << endl;
  for (auto i : mp) {
    cout << i.second << endl;
  }
}
