#include <bits/stdc++.h>
using namespace std;
string name[6] = {"Power", "Time", "Space", "Soul", "Reality", "Mind"};
string color[6] = {"purple", "green", "blue", "orange", "red", "yellow"};
long long used[6];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n;
  string s;
  cin >> n;
  for (long long i = 0; i < n; i++) {
    cin >> s;
    for (long long j = 0; j < 6; j++) {
      if (s == color[j]) {
        used[j] = 1;
        break;
      }
    }
  }
  cout << 6 - n << "\n";
  for (long long i = 0; i < 6; i++) {
    if (used[i] == 0) {
      cout << name[i] << "\n";
    }
  }
}
