#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int rep = (n - 7) / 4;
  int sub = (n - 7) % 4;
  string s = "ROYGBIV";
  string s2 = "GBIV";
  for (int i = 0; i < rep; i++) {
    s += s2;
  }
  s += s2.substr(0, sub);
  cout << s;
}
