#include <bits/stdc++.h>
using namespace std;
pair<string, string> A[6] = {pair<string, string>("Power", "purple"),
                             pair<string, string>("Time", "green"),
                             pair<string, string>("Space", "blue"),
                             pair<string, string>("Soul", "orange"),
                             pair<string, string>("Reality", "red"),
                             pair<string, string>("Mind", "yellow")};
int mark[10];
int main() {
  int h;
  cin >> h;
  for (int i = 0; i < h; i++) {
    string s;
    cin >> s;
    for (int j = 0; j < 6; j++)
      if (A[j].second == s) mark[j] = 1;
  }
  cout << 6 - h << endl;
  for (int i = 0; i < 6; i++)
    if (!mark[i]) cout << A[i].first << endl;
  return 0;
}
