#include <bits/stdc++.h>
bool comp(int i, int j) { return i > j; }
using namespace std;
int main() {
  int n, t, i, j, k;
  string s = "ROYGBIV";
  string an = "";
  scanf("%d", &n);
  an.append(n, 'R');
  i = k = 0;
  j = n - 1;
  while (i <= j) {
    an[i++] = s[k];
    k = (k + 1) % 7;
    if (i > j) break;
    an[j--] = s[k];
    k = (k + 1) % 7;
  }
  cout << an << endl;
  return 0;
}
