#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  map<string, string> my;
  my["red"] = "Reality";
  my["green"] = "Time";
  my["purple"] = "Power";
  my["blue"] = "Space";
  my["orange"] = "Soul";
  my["yellow"] = "Mind";
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    string a;
    cin >> a;
    my.erase(a);
  }
  cout << my.size() << endl;
  map<string, string>::iterator it;
  for (it = my.begin(); it != my.end(); it++) cout << it->second << endl;
  return 0;
}
