#include <bits/stdc++.h>
using namespace std;
const double eps = 1e-9;
int main() {
  int n;
  char i[128];
  memset(i, 0, sizeof(i));
  scanf("%d", &n);
  i[0] = 'R';
  i[1] = 'O';
  i[2] = 'Y';
  i[3] = 'G';
  i[4] = 'B';
  i[5] = 'I';
  i[6] = 'V';
  for (int x = 7; x < n; x++) i[x] = i[((x + 1) % 4) + 3];
  printf("%s\n", i);
  return 0;
}
