#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long n;
  cin >> n;
  string second;
  second = "ROYGBIV";
  if (n > 7) {
    for (int i = 8; i <= n; i++) {
      if (second[i - 2] == 'V')
        second.push_back('G');
      else if (second[i - 2] == 'G')
        second.push_back('B');
      else if (second[i - 2] == 'B')
        second.push_back('I');
      else if (second[i - 2] == 'I')
        second.push_back('V');
    }
  }
  cout << second << endl;
  return 0;
}
