#include <bits/stdc++.h>
using namespace std;
template <typename Arg1>
void __f(const char* name, Arg1&& arg1) {
  cerr << name << " : " << arg1 << std::endl;
}
template <typename Arg1, typename... Args>
void __f(const char* names, Arg1&& arg1, Args&&... args) {
  const char* comma = strchr(names + 1, ',');
  cerr.write(names, comma - names) << " : " << arg1 << " | ";
  __f(comma + 1, args...);
}
map<string, string> M;
int main() {
  std::ios::sync_with_stdio(false);
  ;
  M["purple"] = "Power";
  M["green"] = "Time";
  M["blue"] = "Space";
  M["orange"] = "Soul";
  M["red"] = "Reality";
  M["yellow"] = "Mind";
  int n;
  cin >> n;
  cout << 6 - n << "\n";
  for (int i = 0; i < n; i++) {
    string xx;
    cin >> xx;
    M.erase(xx);
  }
  for (auto xx : M) cout << xx.second << "\n";
  return 0;
}
