#include <bits/stdc++.h>
using namespace std;
int got[7] = {0};
int main() {
  int n, i, cnt = 6;
  cin >> n;
  string s, sol[6] = {"Power", "Time", "Space", "Soul", "Reality", "Mind"};
  for (i = 0; i < n; i++) {
    cin >> s;
    if (s == "purple") got[0] = 1;
    if (s == "green") got[1] = 1;
    if (s == "blue") got[2] = 1;
    if (s == "orange") got[3] = 1;
    if (s == "red") got[4] = 1;
    if (s == "yellow") got[5] = 1;
  }
  for (i = 0; i < 6; i++) cnt -= got[i];
  cout << cnt << '\n';
  for (i = 0; i < 6; i++) {
    if (got[i] == 1) continue;
    cout << sol[i] << '\n';
  }
  return 0;
}
