#include <bits/stdc++.h>
using namespace std;
string s = "ROYGBIV";
int main() {
  int n;
  cin >> n;
  int d = n / 7;
  string ans = "";
  for (int i = 0; i < d; i++) {
    ans += s;
  }
  d = n % 7;
  if (d == 1) {
    ans += 'G';
  }
  if (d == 2) {
    ans += "GB";
  }
  if (d == 3) {
    ans += "YGB";
  }
  if (d == 4) {
    ans += "YGBI";
  }
  if (d == 5) {
    ans += "OYGBI";
  }
  if (d == 6) {
    ans += "OYGBIV";
  }
  cout << ans;
  return 0;
}
