#include <bits/stdc++.h>
using namespace std;
map<string, string> inf;
map<string, bool> rec;
int main() {
  inf["green"] = "Time";
  inf["purple"] = "Power";
  inf["orange"] = "Soul";
  inf["red"] = "Reality";
  inf["yellow"] = "Mind";
  inf["blue"] = "Space";
  rec["green"] = 0;
  rec["purple"] = 0;
  rec["orange"] = 0;
  rec["red"] = 0;
  rec["yellow"] = 0;
  rec["blue"] = 0;
  int n;
  cin >> n;
  cout << 6 - n << endl;
  while (n--) {
    string h;
    cin >> h;
    rec[h] = 1;
  }
  for (auto p = rec.begin(); p != rec.end(); p++) {
    if (p->second != true) {
      cout << inf[p->first] << endl;
    }
  }
  return 0;
}
