#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n, i, ans = 0;
  map<string, string> m;
  m.clear();
  m["purple"] = "Power";
  m["green"] = "Time";
  m["blue"] = "Space";
  m["orange"] = "Soul";
  m["red"] = "Reality";
  m["yellow"] = "Mind";
  cin >> n;
  string tmp;
  for (int i = (0); i < (n); i++) {
    cin >> tmp;
    m.erase(tmp);
  }
  cout << (6 - n) << endl;
  map<string, string>::iterator it;
  for (it = m.begin(); it != m.end(); ++it) cout << it->second << endl;
  return 0;
}
