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