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