#include <bits/stdc++.h>
using namespace std;
int main() {
  set<string> s;
  int n;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    string ss;
    cin >> ss;
    s.insert(ss);
  }
  cout << 6 - n << "\n";
  if (s.find("purple") == s.end()) {
    cout << "Power\n";
  }
  if (s.find("green") == s.end()) {
    cout << "Time\n";
  }
  if (s.find("blue") == s.end()) {
    cout << "Space\n";
  }
  if (s.find("orange") == s.end()) {
    cout << "Soul\n";
  }
  if (s.find("red") == s.end()) {
    cout << "Reality\n";
  }
  if (s.find("yellow") == s.end()) {
    cout << "Mind\n";
  }
  return 0;
}
