#include <bits/stdc++.h>
int main(void) {
  char a[6][10] = {"Power", "Time", "Space", "Soul", "Reality", "Mind"};
  char b[6][10] = {"purple", "green", "blue", "orange", "red", "yellow"};
  int n;
  scanf("%d", &n);
  printf("%d\n", 6 - n);
  char c[n][10];
  for (int i = 0; i < n; i++) {
    scanf("%s", c[i]);
  }
  for (int i = 0; i < 6; i++) {
    int flag = 0;
    for (int j = 0; j < n; j++)
      if (!strcmp(c[j], b[i])) {
        flag++;
        break;
      }
    if (flag == 0) printf("%s\n", a[i]);
  }
  return 0;
}
