#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  long long n;
  cin >> n;
  string s = "ROYGBIV";
  long long x = n - 7;
  string st = "GBIV";
  long long i = 0;
  while (i < x) {
    s += st[(i % 4)];
    i++;
  }
  cout << s << endl;
  return 0;
}
