#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  vector<string> st;
  vector<pair<string, string> > pr;
  pr.push_back(make_pair("purple", "Power"));
  pr.push_back(make_pair("green", "Time"));
  pr.push_back(make_pair("blue", "Space"));
  pr.push_back(make_pair("orange", "Soul"));
  pr.push_back(make_pair("red", "Reality"));
  pr.push_back(make_pair("yellow", "Mind"));
  cin >> n;
  string s;
  for (int i = 0; i < n; i++) {
    cin >> s;
    st.push_back(s);
  }
  int cnt = 0;
  vector<string> ans;
  for (int i = 0; i < pr.size(); i++) {
    int b = 0;
    for (int j = 0; j < st.size(); j++)
      if (pr[i].first == st[j]) {
        b = 1;
        break;
      }
    if (b == 0) {
      cnt++;
      ans.push_back(pr[i].second);
    }
  }
  cout << cnt << endl;
  for (int i = 0; i < ans.size(); i++) cout << ans[i] << endl;
  return 0;
}
