#include <bits/stdc++.h>
using namespace std;
char s[100];
int vis[100];
int main() {
  int n;
  scanf("%d", &n);
  memset(vis, 0, sizeof(vis));
  for (int i = 1; i <= n; ++i) {
    scanf("%s", s);
    if (s[0] == 'p') vis[1] = 1;
    if (s[0] == 'g') vis[2] = 1;
    if (s[0] == 'b') vis[3] = 1;
    if (s[0] == 'o') vis[4] = 1;
    if (s[0] == 'r') vis[5] = 1;
    if (s[0] == 'y') vis[6] = 1;
  }
  int ans = 0;
  for (int i = 1; i <= 6; ++i) {
    if (vis[i])
      continue;
    else {
      ans++;
    }
  }
  printf("%d\n", ans);
  for (int i = 1; i <= 6; ++i) {
    if (vis[i])
      continue;
    else {
      if (i == 1) printf("Power\n");
      if (i == 2) printf("Time\n");
      if (i == 3) printf("Space\n");
      if (i == 4) printf("Soul\n");
      if (i == 5) printf("Reality\n");
      if (i == 6) printf("Mind\n");
    }
  }
  return 0;
}
