#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) { return b == 0 ? a : gcd(b, a % b); }
long long lcm(long long a, long long b) { return a * (b / gcd(a, b)); }
int main(int argc, char** argv) {
  int n;
  cin >> n;
  string s = "";
  int of = 0;
  char arr[] = {'R', 'O', 'Y', 'G', 'B', 'V', 'I'};
  char arr1[] = {'G', 'B', 'V', 'I'};
  int i;
  for (i = 0; i < n && i < 7; i++) s += arr[i % 7];
  for (int c = 0; i < n; i++, c++) s += arr1[c % 4];
  cout << s;
  return 0;
}
