#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL);
  int n;
  cin >> n;
  string s;
  vector<pair<string, bool> > v;
  v.push_back({"yellow", false});
  v.push_back({"red", false});
  v.push_back({"blue", false});
  v.push_back({"orange", false});
  v.push_back({"green", false});
  v.push_back({"purple", false});
  for (int i = 0; i < n; i++) {
    cin >> s;
    for (int i = 0; i < v.size(); i++) {
      if (v[i].first == s) v[i].second = true;
    }
  }
  cout << 6 - n << endl;
  for (int i = 0; i < v.size(); i++) {
    if (v[i].second == false) {
      if (v[i].first == "purple")
        cout << "Power" << endl;
      else if (v[i].first == "yellow")
        cout << "Mind" << endl;
      else if (v[i].first == "red")
        cout << "Reality" << endl;
      else if (v[i].first == "green")
        cout << "Time" << endl;
      else if (v[i].first == "orange")
        cout << "Soul" << endl;
      else if (v[i].first == "blue")
        cout << "Space" << endl;
    }
  }
  return 0;
}
