#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  map<string, string> gems = {{"purple", "Power"}, {"green", "Time"},
                              {"blue", "Space"},   {"orange", "Soul"},
                              {"red", "Reality"},  {"yellow", "Mind"}};
  map<string, string>::iterator itr;
  cin >> n;
  string color[n];
  cout << (6 - n) << endl;
  for (int i = 0; i < n; i++) {
    cin >> color[i];
    gems.erase(color[i]);
  }
  for (itr = gems.begin(); itr != gems.end(); ++itr) {
    cout << itr->second << '\n';
  }
  return 0;
}
