#include <bits/stdc++.h>
using namespace std;
const long long MAX = 200000;
const long long MOD = 1000000007;
const long long OO = 0x3f3f3f3f;
long long n, j = 0;
string cor = "ROYGBIV", ans;
string res = "GBI";
int32_t main() {
  cin >> n;
  long long q = n / 7;
  while (q--) ans += cor;
  if ((n % 7) >= 1 and (n % 7) <= 3) {
    long long id = 0;
    while (ans.size() < n) ans.push_back(res[id++]);
  } else {
    long long id = 0;
    while (ans.size() < n) ans.push_back(cor[id++]);
  }
  cout << ans << endl;
  return 0;
}
