#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  map<string, int> mp;
  map<string, string> m;
  string cad;
  vector<pair<string, string>> v(6);
  v[0] = {"Power", "purple"}, v[1] = {"Time", "green"},
  v[2] = {"Space", "blue"}, v[3] = {"Soul", "orange"},
  v[4] = {"Reality", "red"}, v[5] = {"Mind", "yellow"};
  for (int i = 0; i < n; ++i) {
    cin >> cad;
    mp[cad]++;
  }
  cout << 6 - n << endl;
  for (int i = 0; i < 6; ++i) {
    if (mp[v[i].second] == 0) cout << v[i].first << endl;
  }
  return 0;
}
