#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  long long n;
  cin >> n;
  string s1 = "VIBGYOR";
  string s2[] = {"", "G", "GY", "GYO", "GYOR", "GYORG", "GYORGY"};
  long long times = n / 7;
  string ans = "";
  for (int i = 0; i < times; i += 1) {
    ans += s1;
  }
  ans += s2[n % 7];
  cout << ans << "\n";
}
