#include <bits/stdc++.h>
using namespace std;
inline void fastio() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
signed main() {
  fastio();
  long long n;
  cin >> n;
  vector<long long> a(6, 0);
  for (long long i = (0); i < (n); i++) {
    string s;
    cin >> s;
    if (s == "purple") {
      a[0] = 1;
    } else if (s == "green") {
      a[1] = 1;
    } else if (s == "blue") {
      a[2] = 1;
    } else if (s == "orange") {
      a[3] = 1;
    } else if (s == "red") {
      a[4] = 1;
    } else if (s == "yellow") {
      a[5] = 1;
    }
  }
  vector<string> b;
  if (a[0] == 0) {
    b.push_back("Power");
  }
  if (a[1] == 0) {
    b.push_back("Time");
  }
  if (a[2] == 0) {
    b.push_back("Space");
  }
  if (a[3] == 0) {
    b.push_back("Soul");
  }
  if (a[4] == 0) {
    b.push_back("Reality");
  }
  if (a[5] == 0) {
    b.push_back("Mind");
  }
  cout << (long long)b.size() << '\n';
  for (auto &i : b) cout << i << '\n';
}
