#include <bits/stdc++.h>
using namespace std;
const int dx[] = {0, 1, -1, 0, 1, -1, -1, 1};
const int dy[] = {-1, 0, 0, 1, 1, 1, -1, -1};
const int N = 0;
const int MOD = 0;
const int INF = 1e9 + 10;
const long long int LLINF = 1e17 + 10;
int main() {
  long long int n, k;
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cin >> n;
  set<string> s;
  s.insert("purple");
  s.insert("green");
  s.insert("blue");
  s.insert("orange");
  s.insert("red");
  s.insert("yellow");
  string ss;
  for (int i = 0; i < n; i++) {
    cin >> ss;
    s.erase(ss);
  }
  cout << s.size() << endl;
  for (auto it : s) {
    if (it == "purple") cout << "Power\n";
    if (it == "green") cout << "Time\n";
    if (it == "blue") cout << "Space\n";
    if (it == "orange") cout << "Soul\n";
    if (it == "red") cout << "Reality\n";
    if (it == "yellow") cout << "Mind\n";
  }
  return 0;
}
