#include <bits/stdc++.h>
const double EPS = 1e-9;
const int MOD = 1e9 + 7;
const int dx[] = {1, -1, 0, 0, 0, 0};
const int dy[] = {0, 0, 1, -1, 0, 0};
const int dz[] = {0, 0, 0, 0, 1, -1};
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  string s = "RGBOYIV";
  int n;
  cin >> n;
  for (int i = 0; i < 7; ++i) {
    cout << s[i];
  }
  string Only = "OYIV";
  for (int i = 0; i < n - 7; ++i) {
    cout << Only[i % 4];
  }
  cout << '\n';
}
