#include <bits/stdc++.h>
using namespace std;
long long n, p;
string s, k, f;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  s = "ROY";
  k = "GBIV";
  cin >> n;
  n -= 3;
  for (long long i = 1; i <= n; i++) {
    if (p == 4) p = 0;
    s.push_back(k[p]);
    p++;
  }
  cout << s << endl;
  cin >> n;
  return 0;
}
