#include <bits/stdc++.h>
using namespace std;
int main() {
  std::ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int M[6] = {0};
  map<string, string> gem;
  gem.insert(make_pair("red", "Reality"));
  gem.insert(make_pair("yellow", "Mind"));
  gem.insert(make_pair("purple", "Power"));
  gem.insert(make_pair("green", "Time"));
  gem.insert(make_pair("orange", "Soul"));
  gem.insert(make_pair("blue", "Space"));
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    string p;
    cin >> p;
    gem[p] = "0";
  }
  cout << 6 - n << "\n";
  for (auto it = gem.begin(); it != gem.end(); it++) {
    if (it->second != "0") {
      cout << it->second << "\n";
    }
  }
  return 0;
}
