#include <bits/stdc++.h>
int bsf(int x) { return __builtin_ctz(x); }
int bsr(int x) { return 31 - __builtin_clz(x); }
using namespace std;
const double pi = 3.14159265358979323846;
const int inf = (int)2e+9 + 2;
const int mod = (int)1e+9 + 7;
const double eps = 1e-8;
const int N = 100000;
int n, m, k;
void solve() {
  cin >> n;
  map<string, string> mp = {{"purple", "Power"}, {"green", "Time"},
                            {"blue", "Space"},   {"orange", "Soul"},
                            {"red", "Reality"},  {"yellow", "Mind"}};
  for (int i = 0; i < n; ++i) {
    string s;
    cin >> s;
    mp.erase(s);
  }
  cout << mp.size() << '\n';
  for (auto&& pr : mp) {
    cout << pr.second << '\n';
  }
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0), cout.tie(0);
  int test = 1;
  for (; test; --test) solve();
  return 0;
}
