#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string s = "ROYGBIV";
  string s1 = "GBIV";
  cout << s;
  n -= 7;
  for (int i = 0; i < n / 4; i++)
    for (int j = 0; j < 4; j++) {
      cout << s1[j];
    }
  for (int i = 0; i < n % 4; i++) cout << s1[i];
  return 0;
}
