#include <bits/stdc++.h>
using namespace std;
int Reality, Soul, Space, Power, Time, Mind;
int ans;
int main() {
  int n;
  cin >> n;
  vector<string> v;
  for (int i = 1; n >= i; i++) {
    string s;
    cin >> s;
    if (s == "red") Reality = 1;
    if (s == "orange") {
      Soul = 1;
    }
    if (s == "blue") Space = 1;
    if (s == "purple") Power = 1;
    if (s == "green") Time = 1;
    if (s == "yellow") Mind = 1;
  }
  if (Reality == 0) ans++;
  if (Soul == 0) ans++;
  if (Space == 0) ans++;
  if (Power == 0) ans++;
  if (Time == 0) ans++;
  if (Mind == 0) ans++;
  cout << ans << endl;
  if (Reality == 0) cout << "Reality" << endl;
  if (Soul == 0) cout << "Soul" << endl;
  if (Space == 0) cout << "Space" << endl;
  if (Power == 0) cout << "Power" << endl;
  if (Time == 0) cout << "Time" << endl;
  if (Mind == 0) cout << "Mind" << endl;
  return 0;
}
