#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  string str = "ROYGBIV";
  int exact = n / 7;
  int remain = n % 7;
  for (int i = 1; i <= exact; i++) cout << str;
  string str0 = "";
  string str1 = "G";
  string str2 = "GB";
  string str3 = "YGB";
  string str4 = "YGBI";
  string str5 = "OYGBI";
  string str6 = "OYGBIV";
  switch (remain) {
    case 0:
      cout << str0;
      break;
    case 1:
      cout << str1;
      break;
    case 2:
      cout << str2;
      break;
    case 3:
      cout << str3;
      break;
    case 4:
      cout << str4;
      break;
    case 5:
      cout << str5;
      break;
    case 6:
      cout << str6;
      break;
    default:
      cout << "";
      break;
  }
  return 0;
}
