#include <bits/stdc++.h>
using namespace std;
int main() {
  char s[40];
  int t, i;
  int a[200] = {0};
  cin >> t;
  getchar();
  for (i = 0; i < t; i++) {
    scanf("%s", s);
    a[s[0]]++;
  }
  int cnt = 0;
  for (i = 50; i < 150; i++) {
    if (a[i] > 0) cnt++;
  }
  if (cnt < 6) {
    printf("%d\n", 6 - cnt);
    if (a['p'] == 0) printf("Power\n");
    if (a['g'] == 0) printf("Time\n");
    if (a['b'] == 0) printf("Space\n");
    if (a['o'] == 0) printf("Soul\n");
    if (a['r'] == 0) printf("Reality\n");
    if (a['y'] == 0) printf("Mind\n");
  } else
    printf("0\n");
  return 0;
}
