#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string s[n];
  for (int i = 0; i < n; i++) cin >> s[i];
  string s2[6] = {"blue", "yellow", "purple", "red", "green", "orange"};
  cout << 6 - n << endl;
  for (int i = 0; i < 6; i++) {
  poc:
    for (int j = 0; j < n; j++) {
      if (s2[i] == s[j]) {
        i++;
        goto poc;
      }
    }
    if (s2[i] == "purple") cout << "Power" << endl;
    if (s2[i] == "green") cout << "Time" << endl;
    if (s2[i] == "blue") cout << "Space" << endl;
    if (s2[i] == "orange") cout << "Soul" << endl;
    if (s2[i] == "red") cout << "Reality" << endl;
    if (s2[i] == "yellow") cout << "Mind" << endl;
  }
  return 0;
}
