#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long int n, m;
  cin >> n;
  string temp = "ROYGBIV";
  long long int cnt = n / 7;
  for (long long int i = 0; i < cnt; i++) cout << temp;
  long long int left = n % 7;
  if (left == 1)
    cout << 'G';
  else if (left == 2)
    cout << "GB";
  else if (left == 3)
    cout << "GBI";
  else if (left == 4)
    cout << "GBIV";
  else if (left == 5)
    cout << "GBIVG";
  else if (left == 6)
    cout << "GBIVGB";
  return 0;
}
