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