#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n;
  cin >> n;
  string s1;
  unordered_map<string, string> mp;
  mp.insert({
      "purple",
      "Power",
  });
  mp.insert({"green", "Time"});
  mp.insert({
      "blue",
      "Space",
  });
  mp.insert({
      "orange",
      "Soul",
  });
  mp.insert({
      "red",
      "Reality",
  });
  mp.insert({
      "yellow",
      "Mind",
  });
  unordered_map<string, bool> mp2;
  for (auto i = mp.begin(); i != mp.end(); i++) {
    mp2.insert({i->second, false});
  }
  for (int i = 0; i < n; i++) {
    cin >> s1;
    mp2[mp[s1]] = true;
  }
  int count = 0;
  for (auto i = mp2.begin(); i != mp2.end(); i++) {
    if ((i->second) == false) {
      count++;
    }
  }
  cout << count << endl;
  for (auto i = mp2.begin(); i != mp2.end(); i++) {
    if ((i->second) == false) {
      cout << i->first << endl;
    }
  }
}
int main() {
  long long int t = 1;
  while (t-- > 0) {
    solve();
  }
}
