#include <bits/stdc++.h>
using namespace std;
map<string, int> mp;
int main() {
  int n;
  scanf("%d", &n);
  string str;
  mp.clear();
  for (int i = 0; i < n; i++) {
    cin >> str;
    mp[str] = 1;
  }
  printf("%d\n", 6 - n);
  if (mp["purple"] != 1) cout << "Power" << endl;
  if (mp["blue"] != 1) cout << "Space" << endl;
  if (mp["orange"] != 1) cout << "Soul" << endl;
  if (mp["yellow"] != 1) cout << "Mind" << endl;
  if (mp["green"] != 1) cout << "Time" << endl;
  if (mp["red"] != 1) cout << "Reality" << endl;
  return 0;
}
