#include <bits/stdc++.h>
using namespace std;
char cols[10] = "ROYGBIV";
int arr[105];
int n;
int main() {
  FILE *in = stdin;
  int c, c2;
  fscanf(in, "%d", &n);
  arr[n - 1] = 6;
  arr[n - 2] = 5;
  arr[n - 3] = 4;
  for (c = 0; c < n - 3; c++) arr[c] = c % 4;
  for (c = 0; c < n; c++) printf("%c", cols[arr[c]]);
  printf("\n");
  return 0;
}
