#include <bits/stdc++.h>
using namespace std;
struct Gauntlet {
  string lowGem;
  string upperGem;
  bool flag;
};
int main() {
  int i = 0, n = 0;
  string s = "";
  Gauntlet gem[6] = {"purple", "Power",   0, "green",  "Time", 0,
                     "blue",   "Space",   0, "orange", "Soul", 0,
                     "red",    "Reality", 0, "yellow", "Mind", 0};
  cin >> n;
  while (i < n) {
    cin >> s;
    for (int i = 0; i < 6; i++) {
      if (s == gem[i].lowGem) {
        gem[i].flag = 1;
      }
    }
    i++;
  }
  cout << 6 - n << endl;
  for (int i = 0; i < 6; i++) {
    if (!gem[i].flag) {
      cout << gem[i].upperGem << endl;
    }
  }
  return 0;
}
