#include <bits/stdc++.h>
using namespace std;
map<string, bool> m;
string str[] = {"purple", "green", "blue", "orange", "red", "yellow"};
string ab[] = {"Power", "Time", "Space", "Soul", "Reality", "Mind"};
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    string word;
    cin >> word;
    m[word] = true;
  }
  int count = 0;
  for (int i = 0; i < 6; ++i) {
    if (m[str[i]] == false) {
      ++count;
    }
  }
  cout << count << endl;
  for (int i = 0; i < 6; ++i) {
    if (m[str[i]] == false) {
      cout << ab[i] << endl;
    }
  }
  return 0;
}
