#include <bits/stdc++.h>
using namespace std;
int main() {
  map<string, string> m;
  m["purple"] = "Power";
  m["green"] = "Time";
  m["blue"] = "Space";
  m["orange"] = "Soul";
  m["red"] = "Reality";
  m["yellow"] = "Mind";
  int n;
  cin >> n;
  string temp;
  for (int i = 0; i < n; i++) {
    cin >> temp;
    m.erase(m.find(temp));
  }
  cout << 6 - n << endl;
  for (auto i : m) cout << i.second << endl;
}
