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