#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x, y;
  cin >> n;
  string str = "ROYGBIV", c[] = {"G", "GB", "YBG", "YBGI", "YBGIV", "YBGIVB"};
  x = n / 7;
  y = n % 7;
  if (y != 0) {
    for (int i = 0; i < x; i++) cout << str;
    cout << c[y - 1];
  } else {
    for (int i = 0; i < x; i++) cout << str;
  }
}
