#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x, y, k = 0;
  scanf("%d", &n);
  char c[] = "GYOR";
  printf("VIBGYOR");
  x = n - 7;
  while (x--) {
    if (k == 4) k = k - 4;
    printf("%c", c[k++]);
  }
}
