#include <bits/stdc++.h>
using namespace std;
const double eps = 1e-8;
const double PI = acos(-1.0);
map<string, string> mp;
map<string, string>::iterator iter;
int main() {
  int n, ans;
  string s[10];
  mp["purple"] = "Power";
  mp["green"] = "Time";
  mp["blue"] = "Space";
  mp["orange"] = "Soul";
  mp["red"] = "Reality";
  mp["yellow"] = "Mind";
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> s[i];
    mp[s[i]] = "1";
  }
  cout << 6 - n << endl;
  for (iter = mp.begin(); iter != mp.end(); iter++) {
    if (iter->second != "1") {
      cout << iter->second << endl;
    }
  }
  return 0;
}
