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