#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  map<string, string> m;
  map<string, bool> mp;
  m["purple"] = "Power";
  m["green"] = "Time";
  m["blue"] = "Space";
  m["orange"] = "Soul";
  m["red"] = "Reality";
  m["yellow"] = "Mind";
  mp["purple"] = false;
  mp["green"] = false;
  mp["blue"] = false;
  mp["orange"] = false;
  mp["red"] = false;
  mp["yellow"] = false;
  for (int i = 0; i < n; i++) {
    string s;
    cin >> s;
    mp[s] = true;
  }
  cout << 6 - n << "\n";
  for (auto it : mp) {
    if (it.second == false) cout << m[it.first] << "\n";
  }
}
