#include <bits/stdc++.h>
char mp[10], ans[105];
int main() {
  mp[1] = 'R';
  mp[2] = 'O';
  mp[3] = 'Y';
  mp[4] = 'G';
  mp[5] = 'B';
  mp[6] = 'I';
  mp[7] = 'V';
  int n, i;
  scanf("%d", &n);
  ans[n] = mp[7];
  ans[n - 1] = mp[6];
  ans[n - 2] = mp[5];
  n = n - 3;
  for (i = 1; i <= n; i++) ans[i] = mp[i % 4 + 1];
  printf("%s\n", ans + 1);
  return 0;
}
