#include <bits/stdc++.h>
using namespace std;
const int inf = 1e9 + 7;
const int N = 1e6 + 5;
string a[10] = {"Power", "Time", "Space", "Soul", "Reality", "Mind"},
       b[10] = {"purple", "green", "blue", "orange", "red", "yellow"};
string c[10];
bool d[10];
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> c[i];
    for (int j = 0; j < 6; j++) {
      if (c[i] == b[j]) d[j] = true;
    }
  }
  cout << 6 - n << endl;
  for (int i = 0; i < 6; i++) {
    if (!d[i]) cout << a[i] << endl;
  }
  return 0;
}
