#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
const int INF = int(1e9);
vector<string> a = {"Time", "Mind", "Soul", "Power", "Reality", "Space"};
vector<string> b = {"green", "yellow", "orange", "purple", "red", "blue"};
int done[10];
map<string, int> cnt;
int main() {
  ios_base::sync_with_stdio(false);
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    string cur;
    cin >> cur;
    for (int j = 0; j < 6; j++) {
      if (b[j] == cur) {
        done[j] = true;
      }
    }
  }
  cout << 6 - n << "\n";
  for (int i = 0; i < 6; i++) {
    if (!done[i]) {
      cout << a[i] << "\n";
    }
  }
  return 0;
}
