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