#include <bits/stdc++.h>
using namespace std;
int main() {
  int num;
  scanf("%d", &num);
  char table[5] = {"GBIV"};
  string str = "ROYGBIV";
  for (int i = 0; i < num - 7; ++i) {
    str += table[i % 4];
  }
  printf("%s\n", str.c_str());
  return 0;
}
