#include <bits/stdc++.h>
using namespace std;
const long long OO = 2e9;
const double EPS = (1e-7);
int dcmp(double x, double y) { return fabs(x - y) <= EPS ? 0 : x < y ? -1 : 1; }
int main() {
  int n;
  cin >> n;
  while (n > 3) {
    if (n % 4 == 0)
      cout << "R";
    else if (n % 4 == 1)
      cout << "O";
    else if (n % 4 == 2)
      cout << "Y";
    else if (n % 4 == 3)
      cout << "G";
    n--;
  }
  cout << "BIV";
}
