#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string colours[n];
  for (int i = 0; i < n; i++) {
    cin >> colours[i];
  }
  cout << 6 - n << endl;
  string col1[6]{"purple", "green", "blue", "orange", "red", "yellow"};
  string col2[6]{"Power", "Time", "Space", "Soul", "Reality", "Mind"};
  for (int j = 0; j < 6; j++) {
    int jjj = 0;
    for (int jj = 0; jj < n; jj++) {
      if (col1[j] != colours[jj]) jjj++;
    }
    if (jjj == n) cout << col2[j] << endl;
  }
  return 0;
}
