#include <bits/stdc++.h>
using namespace std;
const int INF = int(1e9 + 7);
const int MAXN = int(5e5 + 7);
int n, m;
char ans[250], c[10] = {'R', 'O', 'Y', 'G'};
int main() {
  cin >> n;
  ans[n - 1] = 'V', ans[n - 2] = 'I', ans[n - 3] = 'B';
  for (int i = 0; i < n - 3; i++) {
    ans[i] = c[i % 4];
  }
  printf("%s", ans);
  return 0;
}
