#include <bits/stdc++.h>
using namespace std;
template <typename T>
inline void write(const vector<T> &list) {
  std::stringstream S;
  for (const T &t : list) {
    S << t;
    S << " ";
  }
  std::cout << S.str();
}
template <typename T>
inline void read(int n, vector<T> &list) {
  std::string input;
  std::getline(std::cin, input);
  std::stringstream stream(input);
  T temp;
  while (n > 0) {
    stream >> temp;
    if (!stream) break;
    list.push_back(temp);
    --n;
  }
}
template <typename T>
inline void read(int n, set<T> &S) {
  std::string input;
  std::getline(std::cin, input);
  std::stringstream stream(input);
  T temp;
  while (n > 0) {
    stream >> temp;
    if (!stream) break;
    S.insert(temp);
    --n;
  }
}
int main() {
  map<string, string> M;
  M["purple"] = "Power";
  M["green"] = "Time";
  M["blue"] = "Space";
  M["orange"] = "Soul";
  M["red"] = "Reality";
  M["yellow"] = "Mind";
  int n;
  string test;
  cin >> n;
  for (unsigned int(i) = 0; (i) < (n); (i) += 1) {
    cin >> test;
    M.erase(test);
  }
  cout << 6 - n;
  for (auto(it) = (M).begin(); (it) != (M).end(); (it)++)
    cout << '\n' << it->second;
  return 0;
}
