#include <bits/stdc++.h>
using namespace std;
const int INF = 0x3f3f3f3f;
const double EPS = 1e-5;
template <typename T>
T abs(const T& a) {
  if (a >= 0) return a;
  return -a;
}
int main() {
  ios::sync_with_stdio(false);
  int sz;
  cin >> sz;
  int ini = 0, fim = sz - 1;
  char c[7] = {'R', 'O', 'Y', 'B', 'I', 'V', 'G'};
  string ans = "ROYBIVG";
  for (int i = 7; i < sz; ++i) {
    ans += 'X';
  }
  int cont;
  for (int i = 7; i < sz; ++i) {
    cont = 0;
    while (c[cont] == ans[i - 1] || c[cont] == ans[i - 2] ||
           c[cont] == ans[i - 3] || c[cont] == ans[(i + 1) % sz] ||
           c[cont] == ans[(i + 2) % sz] || c[cont] == ans[(i + 3) % sz])
      cont++;
    ans[i] = c[cont];
  }
  cout << ans << "\n";
  return 0;
}
