#include <bits/stdc++.h>
using namespace std;
template <typename A, typename B>
bool cmin(A &a, const B &b) {
  return a > b ? (a = b, true) : false;
}
template <typename A, typename B>
bool cmax(A &a, const B &b) {
  return a < b ? (a = b, true) : false;
}
const double PI = acos(-1);
const double EPS = 1e-9;
long long inf = sizeof(long long) == sizeof(long long) ? 2e18 : 1e9 + 10;
long long dx[] = {0, 1, 0, -1};
long long dy[] = {1, 0, -1, 0};
signed main() {
  string w[] = {"Power", "Time", "Space", "Soul", "Reality", "Mind"};
  string e[] = {"purple", "green", "blue", "orange", "red", "yellow"};
  vector<long long> c(6);
  long long n;
  cin >> n;
  for (long long i = 0; i < n; i++) {
    string s;
    cin >> s;
    for (long long j = 0; j < 6; j++)
      if (e[j] == s) c[j] = 1;
  }
  vector<string> out;
  for (long long i = 0; i < 6; i++)
    if (c[i] == 0) out.push_back(w[i]);
  cout << out.size() << endl;
  for (long long i = 0; i < out.size(); i++) cout << out[i] << endl;
}
