#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string colour = "ROYGBIV";
  int count = 0;
  int num = n / 7;
  int rem = n % 7;
  list<char> arr;
  list<char>::iterator it;
  for (int i = 0; i < 7; i++) arr.push_back(colour[i]);
  it = arr.end();
  for (int i = 1; i < num; i++) {
    it--;
    it--;
    it--;
    for (int j = 0; j < 7; j++) {
      arr.insert(it, colour[j]);
      if (j < 3) it++;
    }
  }
  it = arr.end();
  it--;
  it--;
  it--;
  for (int i = 0; i < rem; i++) {
    arr.insert(it, colour[i]);
    if (i < 3) it++;
  }
  it = arr.begin();
  while (it != arr.end()) {
    cout << *it;
    it++;
  }
  cout << endl;
  return 0;
}
