#include <bits/stdc++.h>
using namespace std;
double pi = acos(-1);
string p = "ROYGRBIV";
int main() {
  for (int i = 0; i < 25; i++) {
    p += "GBIV";
  }
  int n;
  cin >> n;
  if (n == 7) {
    cout << "ROYGBIV";
  } else {
    cout << p.substr(0, n);
  }
}
