#include <bits/stdc++.h>
using namespace std;
void sprint(string s) {
  for (int i = 0; i < s.size(); ++i) printf("%c", s[i]);
  printf("\n");
}
int main() {
  map<string, string> m;
  map<string, int> s;
  m["purple"] = "Power";
  m["green"] = "Time";
  m["blue"] = "Space";
  m["orange"] = "Soul";
  m["red"] = "Reality";
  m["yellow"] = "Mind";
  int x;
  cin >> x;
  for (int i = 0; i < x; ++i) {
    string temp;
    cin >> temp;
    s[temp] = 1;
  }
  cout << 6 - x << endl;
  for (auto it = m.begin(); it != m.end(); ++it) {
    string temp = it->first;
    if (s[temp] != 1) cout << it->second << endl;
  }
  return 0;
}
