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