#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  char colors[] = "ROYGBIV";
  const int nColors = 7;
  cin >> N;
  for (int i = 0, c = 0; i < N - 3; i++, c++) {
    if (c == 4) {
      c = 0;
    }
    cout << colors[c];
  }
  cout << "BIV" << endl;
  return 0;
}
