#include <bits/stdc++.h>
using namespace std;
void fscpp() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
int main() {
  fscpp();
  map<string, string> m;
  m["purple"] = "Power";
  m["green"] = "Time";
  m["blue"] = "Space";
  m["orange"] = "Soul";
  m["red"] = "Reality";
  m["yellow"] = "Mind";
  map<string, long long> m1;
  m1["purple"] = 1;
  m1["green"] = 1;
  m1["blue"] = 1;
  m1["orange"] = 1;
  m1["red"] = 1;
  m1["yellow"] = 1;
  string s;
  long long n, k;
  cin >> n;
  k = n;
  while (n--) {
    cin >> s;
    m1[s] = 0;
  }
  map<string, long long>::iterator it;
  cout << 6 - k << "\n";
  for (it = m1.begin(); it != m1.end(); it++) {
    if (it->second == 1) {
      cout << m[it->first] << "\n";
    }
  }
  return 0;
}
