#include <bits/stdc++.h>
using namespace std;
int n;
char s[100];
map<string, string> m;
int main() {
  m["purple"] = "Power";
  m["green"] = "Time";
  m["blue"] = "Space";
  m["orange"] = "Soul";
  m["red"] = "Reality";
  m["yellow"] = "Mind";
  scanf("%d", &n);
  for (int i = 0; i < (n); ++i) {
    scanf("%s", s);
    m.erase(s);
  }
  printf("%d\n", (int)m.size());
  for (__typeof((m).begin()) i = (m).begin(); i != (m).end(); ++i)
    printf("%s\n", i->second.c_str());
}
