#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<string> v;
  int num = 0;
  int cnt = 0;
  cin >> num;
  string s1[6] = {"purple", "green", "blue", "orange", "red", "yellow"};
  string s2[6] = {"Power", "Time", "Space", "Soul", "Reality", "Mind"};
  if (num == 0) {
    cout << "6" << endl;
    for (int i = 0; i < 6; i++) {
      cout << s2[i] << endl;
    }
    return 0;
  } else {
    string s3[num];
    for (int i = 0; i < num; i++) {
      cin >> s3[i];
    }
    for (int i = 0; i < 6; i++) {
      for (int j = 0; j < num; j++) {
        if (s1[i] == s3[j]) {
          goto Continue;
        }
        if (s1[i] != s3[j] && j == num - 1) {
          v.push_back(s2[i]);
          ++cnt;
        } else {
          continue;
        }
      }
    Continue:
      continue;
    }
  }
  cout << cnt;
  cout << endl;
  for (auto i : v) {
    cout << i << endl;
  }
  return 0;
}
