#include <bits/stdc++.h>
using namespace std;
const long long N = 1e5 + 5;
vector<long long> v[3];
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long n;
  cin >> n;
  char c[] = {'R', 'O', 'Y', 'G'};
  for (long long i = 0; i < n - 3; ++i) {
    cout << c[i % 4];
  }
  cout << "BIV";
  return 0;
}
