#include <bits/stdc++.h>
using namespace std;
int n, m, x[1001], s;
string a[1001], b[1001] = {"Power", "Time", "Space", "Soul", "Reality", "Mind"};
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
    if (a[i] == "purple") x[1]++;
    if (a[i] == "green") x[2]++;
    if (a[i] == "blue") x[3]++;
    if (a[i] == "orange") x[4]++;
    if (a[i] == "red") x[5]++;
    if (a[i] == "yellow") x[6]++;
  }
  for (int i = 1; i <= 6; i++) {
    if (x[i] == 0) s++;
  }
  cout << s << endl;
  for (int i = 1; i <= 6; i++) {
    if (x[i] == 0) cout << b[i - 1] << endl;
  }
  return 0;
}
