#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  cout << 6 - n << '\n';
  vector<bool> chk(6, false);
  for (int i = 0; i < n; i++) {
    string s;
    cin >> s;
    if (s[0] == 'p')
      chk[0] = true;
    else if (s[0] == 'g')
      chk[1] = true;
    else if (s[0] == 'b')
      chk[2] = true;
    else if (s[0] == 'o')
      chk[3] = true;
    else if (s[0] == 'r')
      chk[4] = true;
    else if (s[0] == 'y')
      chk[5] = true;
  }
  if (chk[0] == false) cout << "Power" << '\n';
  if (chk[1] == false) cout << "Time" << '\n';
  if (chk[2] == false) cout << "Space" << '\n';
  if (chk[3] == false) cout << "Soul" << '\n';
  if (chk[4] == false) cout << "Reality" << '\n';
  if (chk[5] == false) cout << "Mind" << '\n';
}
