#include <bits/stdc++.h>
using namespace std;
int n;
string sisa[8], ans;
int main(void) {
  sisa[0] = "";
  sisa[1] = "G";
  sisa[2] = "GB";
  sisa[3] = "GBI";
  sisa[4] = "GBIV";
  sisa[5] = "GBIVG";
  sisa[6] = "GBIVGB";
  ans = "ROYGBIV";
  cin >> n;
  for (int i = 0; i < n - (n % 7); i++) cout << ans[i % 7];
  cout << sisa[n % 7] << endl;
}
