#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  unordered_map<string, string> m;
  m["purple"] = "Power";
  m["green"] = "Time";
  m["blue"] = "Space";
  m["orange"] = "Soul";
  m["red"] = "Reality";
  m["yellow"] = "Mind";
  int n, cnt = 0;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    string s;
    cin >> s;
    m.erase(s);
  }
  cout << m.size() << "\n";
  for (auto i : m) {
    cout << i.second << "\n";
  }
  return 0;
}
