#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false), cin.tie(nullptr);
  ;
  int n;
  cin >> n;
  string x;
  map<string, string> keys;
  map<string, int> what;
  keys["purple"] = "Power";
  keys["green"] = "Time";
  keys["blue"] = "Space";
  keys["orange"] = "Soul";
  keys["red"] = "Reality";
  keys["yellow"] = "Mind";
  cout << 6 - n << '\n';
  while (n--) {
    cin >> x;
    what[x]++;
  }
  for (auto it = keys.begin(); it != keys.end(); it++) {
    if (what[it->first] == 0) {
      cout << it->second << '\n';
    }
  }
  return 0;
}
