#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long int i, j, k, n, m, t;
  map<string, string> pk;
  pk["purple"] = "Power", pk["green"] = "Time", pk["blue"] = "Space",
  pk["orange"] = "Soul", pk["red"] = "Reality", pk["yellow"] = "Mind";
  set<string> st;
  st.insert("purple"), st.insert("green"), st.insert("blue"),
      st.insert("orange"), st.insert("red"), st.insert("yellow");
  cin >> n;
  if (n == 0) {
    cout << "6\n";
    for (set<string>::iterator it = st.begin(); it != st.end(); it++) {
      cout << pk[*it] << "\n";
    }
  } else {
    for (i = 0; i < n; i++) {
      string c;
      cin >> c;
      st.erase(c);
    }
    cout << st.size() << "\n";
    for (set<string>::iterator it = st.begin(); it != st.end(); it++) {
      cout << pk[*it] << "\n";
    }
  }
  return 0;
}
