#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  map<char, string> mp;
  mp['p'] = "Power";
  mp['g'] = "Time";
  mp['b'] = "Space";
  mp['o'] = "Soul";
  mp['r'] = "Reality";
  mp['y'] = "Mind";
  cin >> n;
  char t;
  for (int i = 0; i < n; ++i) {
    cin >> t;
    cin.ignore(10, '\n');
    mp.erase(mp.find(t));
  }
  cout << 6 - n << endl;
  for (auto i : mp) cout << i.second << endl;
  return 0;
}
