#include <bits/stdc++.h>
using namespace std;
long long int power(long long int x, long long int y, long long int p) {
  long long int res = 1;
  x = x % p;
  while (y > 0) {
    if (y & 1) res = (res * x) % p;
    y = y >> 1;
    x = (x * x) % p;
  }
  return res;
}
long long int fact[1000005];
long long int func() {
  fact[0] = fact[1] = 1;
  for (long long int i = 2; i < 1000005; i++) {
    fact[i] = (fact[i - 1] * i) % 998244353;
  }
}
long long int isPrime[100005];
long long int sieve() {
  isPrime[0] = 1;
  isPrime[1] = 1;
  for (long long int i = 2; i < 100005; i++) {
    if (isPrime[i] == 0) {
      for (long long int j = i * 2; j < 100005; j += i) {
        isPrime[j] = 1;
      }
    }
  }
}
map<string, string> m;
int main() {
  m["purple"] = "Power";
  m["green"] = "Time";
  m["blue"] = "Space";
  m["orange"] = "Soul";
  m["red"] = "Reality";
  m["yellow"] = "Mind";
  long long int n;
  string k;
  cin >> n;
  for (long long int i = 0; i < n; i++) {
    cin >> k;
    m.erase(k);
  }
  map<string, string>::iterator it;
  cout << m.size() << endl;
  for (it = m.begin(); it != m.end(); it++) {
    cout << it->second << endl;
  }
}
