#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int i, j, n;
  string s = "ROYGVBI";
  cin >> n;
  for (i = 0, j = 0; i < n; j++, i++) {
    cout << s[j];
    if (j == 6) j = 2;
  }
  cout << endl;
  return 0;
}
