#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, p = 0, g = 0, b = 0, o = 0, r = 0, y = 0, c = 0;
  cin >> n;
  string s[n];
  for (i = 0; i < n; i++) {
    cin >> s[i];
  }
  for (i = 0; i < n; i++) {
    if (s[i] == "purple")
      p++;
    else if (s[i] == "green")
      g++;
    else if (s[i] == "blue")
      b++;
    else if (s[i] == "orange")
      o++;
    else if (s[i] == "red")
      r++;
    else if (s[i] == "yellow")
      y++;
  }
  if (p == 0) c++;
  if (g == 0) c++;
  if (b == 0) c++;
  if (o == 0) c++;
  if (r == 0) c++;
  if (y == 0) c++;
  cout << c << endl;
  if (p == 0) cout << "Power" << endl;
  if (g == 0) cout << "Time" << endl;
  if (b == 0) cout << "Space" << endl;
  if (o == 0) cout << "Soul" << endl;
  if (r == 0) cout << "Reality" << endl;
  if (y == 0) cout << "Mind" << endl;
  return 0;
}
