#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, temp = 0;
  cin >> n;
  map<string, string> mp;
  vector<string> arr(n);
  mp["purple"] = "Power";
  mp["green"] = "Time";
  mp["blue"] = "Space";
  mp["orange"] = "Soul";
  mp["red"] = "Reality";
  mp["yellow"] = "Mind";
  for (auto &x : arr) cin >> x;
  cout << 6 - n << "\n";
  for (auto x : mp) {
    temp = 0;
    for (int i = 0; i < n; i++) {
      if (x.first == arr[i]) temp = 1;
    }
    if (temp == 0) cout << x.second << "\n";
  }
  return 0;
}
