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