#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1e9 + 7, maxN = 5e2 + 6, maxV = 6561 + 5;
int arr[maxN], n;
string gaun[6] = {"Power", "Time", "Space", "Soul", "Reality", "Mind"};
string col[6] = {"purple", "green", "blue", "orange", "red", "yellow"};
int main() {
  ios::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  cin >> n;
  map<string, string> mp;
  for (int i = 0; i < 6; i++) {
    mp[col[i]] = gaun[i];
  }
  set<string> mys;
  for (int i = 0; i < n; i++) {
    string str;
    cin >> str;
    mys.insert(mp[str]);
  }
  vector<string> ans;
  for (int i = 0; i < 6; i++) {
    if (mys.find(gaun[i]) == mys.end()) {
      ans.push_back(gaun[i]);
    }
  }
  cout << ans.size() << '\n';
  for (string el : ans) cout << el << '\n';
}
