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