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