#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, flag = 0;
  cin >> n;
  n -= 7;
  cout << "ROYGBIV";
  while (n / 4) cout << "ROYG", n -= 4, flag = 1;
  if (flag) {
    if (n == 1) cout << "B";
    if (n == 2) cout << "BI";
    if (n == 3) cout << "BIV";
  } else {
    if (n == 1) cout << "G";
    if (n == 2) cout << "GB";
    if (n == 3) cout << "GBI";
  }
}
