#include <bits/stdc++.h>
using namespace std;
inline bool equal(double _x, double _y) {
  return _x > _y - 1e-9 && _x < _y + 1e-9;
}
map<string, string> mp;
int n;
string str;
int main() {
  scanf("%d", &n);
  mp["purple"] = "Power";
  mp["green"] = "Time";
  mp["blue"] = "Space";
  mp["orange"] = "Soul";
  mp["red"] = "Reality";
  mp["yellow"] = "Mind";
  for (int i = 0; i < n; i++) {
    cin >> str;
    mp.erase(str);
  }
  printf("%d\n", ((int)mp.size()));
  for (auto i : mp) {
    cout << i.second << '\n';
  }
}
