#include <bits/stdc++.h>
using namespace std;
int main() {
  map<string, string> m;
  m["purple"] = "Power";
  m["green"] = "Time";
  m["blue"] = "Space";
  m["orange"] = "Soul";
  m["red"] = "Reality";
  m["yellow"] = "Mind";
  int n;
  cin >> n;
  while (n--) {
    string x;
    cin >> x;
    m.erase(x);
  }
  cout << m.size() << endl;
  for (auto i : m) cout << i.second << endl;
  return 0;
}
