#include <bits/stdc++.h>
using namespace std;
int main() {
  bool have[] = {false, false, false, false, false, false};
  string cols[] = {"purple", "green", "blue", "orange", "red", "yellow"};
  string names[] = {"Power", "Time", "Space", "Soul", "Reality", "Mind"};
  int cnt;
  cin >> cnt;
  int j, i;
  string cur;
  for (i = 0; i < cnt; i++) {
    cin >> cur;
    for (j = 0; j < 6; j++)
      if (cur == cols[j]) {
        have[j] = true;
        break;
      }
  }
  cout << (6 - cnt) << endl;
  for (i = 0; i < 6; i++)
    if (!have[i]) cout << names[i] << endl;
  return 0;
}
