#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  char second[10] = {'R', 'O', 'Y', 'G', 'B', 'I', 'V'};
  cin >> n;
  int j = 0;
  int tt = (n / 7) * 7;
  int r = n % 7, st = 0;
  if (r == 1)
    st = 3;
  else if (r == 2)
    st = 2;
  else if (r == 3)
    st = 1;
  else
    st = 0;
  for (int i = 0; i < tt; i++, j++) {
    if (j == 7) j = 0;
    cout << second[j];
  }
  j = st;
  for (int i = 0; i < r; i++, j++) {
    if (j == 7) j = 0;
    cout << second[j];
  }
  return 0;
}
