#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  for (int i = 1; i <= n - 3; i++) {
    if (i % 4 == 1)
      cout << "R";
    else if (i % 4 == 2)
      cout << "G";
    else if (i % 4 == 3)
      cout << "B";
    else
      cout << "O";
  }
  cout << "YIV";
  return 0;
}
