#include <bits/stdc++.h>
int main() {
  int a = 0, b = 0, c = 0, d = 0, e = 0, f = 0, g, h, i, j, k, l, m, n;
  char st[100];
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    scanf("%s", st);
    if (st[0] == 'p')
      a++;
    else if (st[0] == 'g')
      b++;
    else if (st[0] == 'b')
      c++;
    else if (st[0] == 'r')
      d++;
    else if (st[0] == 'y')
      e++;
    else if (st[0] == 'o')
      f++;
  }
  printf("%d\n", 6 - n);
  if (a == 0) printf("Power\n");
  if (b == 0) printf("Time\n");
  if (c == 0) printf("Space\n");
  if (d == 0) printf("Reality\n");
  if (e == 0) printf("Mind\n");
  if (f == 0) printf("Soul\n");
  return 0;
}
