#include <bits/stdc++.h>
using namespace std;
const int MAX = 1e5 + 55;
int x[MAX];
long long poww(long long x, long long y) {
  if (y == 0) return 1;
  long long s = poww(x, y / 2);
  s = (s * s);
  if (y % 2 == 1) s = (s * x);
  return s;
}
int main() {
  string s = "OYGR";
  string c = "BIV";
  int t = 0;
  int n;
  cin >> n;
  string b = "";
  for (int i = 0; i < n - 3; i++) {
    if (t == 4) t = 0;
    b += s[t];
    t++;
  }
  cout << b + c;
  return 0;
}
