Problem: You took a peek on Thanos wearing Infinity Gauntlet. In the Gauntlet there is a place for six Infinity Gems:

  * the Power Gem of purple color, 
  * the Time Gem of green color, 
  * the Space Gem of blue color, 
  * the Soul Gem of orange color, 
  * the Reality Gem of red color, 
  * the Mind Gem of yellow color. 



Using colors of Gems you saw in the Gauntlet determine the names of absent Gems.

Input

In the first line of input there is one integer n (0 ≤ n ≤ 6) — the number of Gems in Infinity Gauntlet.

In next n lines there are colors of Gems you saw. Words used for colors are: purple, green, blue, orange, red, yellow. It is guaranteed that all the colors are distinct. All colors are given in lowercase English letters.

Output

In the first line output one integer m (0 ≤ m ≤ 6) — the number of absent Gems.

Then in m lines print the names of absent Gems, each on its own line. Words used for names are: Power, Time, Space, Soul, Reality, Mind. Names can be printed in any order. Keep the first letter uppercase, others lowercase.

Examples

Input

4
red
purple
yellow
orange


Output

2
Space
Time


Input

0


Output

6
Time
Mind
Soul
Power
Reality
Space

Note

In the first sample Thanos already has Reality, Power, Mind and Soul Gems, so he needs two more: Time and Space.

In the second sample Thanos doesn't have any Gems, so he needs all six.

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
#pragma GCC optimize("O3")
using namespace std;
unsigned long long int pow1(unsigned long long int a, unsigned long long int b,
                            unsigned long long int c) {
  unsigned long long int ans = 1;
  while (b) {
    if (b & 1) {
      ans *= a;
      ans %= c;
    }
    b /= 2;
    a = a * a;
    a %= c;
  }
  return ans;
}
long long int gcd(unsigned long long int a, unsigned long long int b) {
  unsigned long long int t = a;
  a = min(a, b);
  b = max(b, t);
  if (a == 0)
    return b;
  else
    return gcd(b % a, a);
}
unsigned long long int fct(unsigned long long int k) {
  unsigned long long int a = 1;
  for (long long int i = 2; i < k + 1; i++) {
    a *= i;
    a %= 1000000007;
  }
  return a;
}
unsigned long long int C(unsigned long long int n, unsigned long long int r) {
  if (n < r)
    return 0;
  else if (n == r || r == 0)
    return 1;
  vector<vector<unsigned long long int> > v(
      n + 1, vector<unsigned long long int>(r + 1));
  for (long long int i = 0; i < n + 1; i++) v[i][0] = 1;
  for (long long int i = 0; i < r + 1; i++) v[0][i] = 1;
  for (long long int i = 1; i < n + 1; i++) {
    for (long long int j = 1; j < min(i, (long long int)r) + 1; j++) {
      if (i == j)
        v[i][j] = 1;
      else if (j == 1)
        v[i][j] = i;
      else
        v[i][j] = (v[i - 1][j - 1] + v[i - 1][j]) % 1000000007;
    }
  }
  return v[n][r] % 1000000007;
}
char ass(char a) {
  if (a == 'a' || a == 'c') return 'b';
  return 'a';
}
char assn(char a, char b) {
  if (a == 'a') {
    if (b == 'b')
      return 'c';
    else
      return 'b';
  } else if (a == 'b') {
    if (b == 'a')
      return 'c';
    else
      return 'a';
  } else {
    if (b == 'a')
      return 'b';
    else
      return 'a';
  }
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0), cout.tie(0);
  cout << fixed << setprecision(15);
  map<string, string> mp;
  mp["green"] = "Time";
  mp["blue"] = "Space";
  mp["orange"] = "Soul";
  mp["red"] = "Reality";
  mp["yellow"] = "Mind";
  mp["purple"] = "Power";
  int n;
  cin >> n;
  for (long long int i = 0; i < n; i++) {
    string h;
    cin >> h;
    mp.erase(h);
  }
  cout << mp.size() << endl;
  for (auto& x : mp) {
    cout << x.second << endl;
  }
}