#include <bits/stdc++.h>
using namespace std;
static int cnt = 0;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  string x = "ROYGBIV", y = "GBIV";
  for (int i = 0; i < n - 7; i++) x += y[i % 4];
  cout << x;
  return 0;
}
