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