#include <bits/stdc++.h>
using namespace std;
map<string, bool> m;
map<string, string> m1;
int main() {
  int n, p;
  string s1;
  m1["purple"] = "Power";
  m1["green"] = "Time";
  m1["blue"] = "Space";
  m1["orange"] = "Soul";
  m1["red"] = "Reality";
  m1["yellow"] = "Mind";
  string s[] = {"Time", "Space", "Power", "Reality", "Mind", "Soul"};
  cin >> n;
  getchar();
  p = 6 - n;
  for (int i = 0; i < n; i++) {
    cin >> s1;
    m[m1[s1]] = true;
  }
  cout << p << '\n';
  for (int i = 0; i < 6; i++) {
    if (m[s[i]] == false) cout << s[i] << '\n';
  }
}
