#include <bits/stdc++.h>
using namespace std;
int main() {
  int mm;
  string s;
  scanf("%d", &mm);
  if (mm == 0) {
    cout << "6" << endl << "Power\nTime\nSpace\nSoul\nReality\nMind" << endl;
    return 0;
  }
  int z = mm;
  map<string, int> m;
  map<string, int>::iterator it;
  m["purple"] = 0, m["green"] = 0, m["blue"] = 0, m["orange"] = 0, m["red"] = 0,
  m["yellow"] = 0;
  while (mm--) {
    cin >> s;
    m[s]++;
  }
  cout << 6 - z << endl;
  if (m["red"] == 0) {
    cout << "Reality" << endl;
  }
  if (m["purple"] == 0) {
    cout << "Power" << endl;
  }
  if (m["green"] == 0) {
    cout << "Time" << endl;
  }
  if (m["blue"] == 0) {
    cout << "Space" << endl;
  }
  if (m["orange"] == 0) {
    cout << "Soul" << endl;
  }
  if (m["yellow"] == 0) {
    cout << "Mind" << endl;
  }
}
