#include <bits/stdc++.h>
using namespace std;
map<string, string> m;
int main() {
  int n;
  set<string> s;
  string p;
  m["purple"] = "Power";
  m["green"] = "Time";
  m["blue"] = "Space";
  m["orange"] = "Soul";
  m["red"] = "Reality";
  m["yellow"] = "Mind";
  map<string, string>::iterator ip;
  for (ip = m.begin(); ip != m.end(); ip++) {
    s.insert(ip->second);
  }
  scanf("%d", &n);
  int g = n;
  while (n--) {
    cin >> p;
    s.erase(m[p]);
  }
  printf("%d\n", 6 - g);
  set<string>::iterator it;
  for (it = s.begin(); it != s.end(); it++) {
    cout << *it << endl;
  }
}
