#include <bits/stdc++.h>
int main() {
  int n, i;
  scanf("%d", &n);
  for (i = 1; i <= n / 7; i++) {
    printf("ROYGBIV");
  }
  if (n % 7 == 0)
    printf("\n");
  else if (n % 7 == 1)
    printf("G\n");
  else if (n % 7 == 2)
    printf("GB\n");
  else if (n % 7 == 3)
    printf("YGB\n");
  else if (n % 7 == 4)
    printf("YGBI\n");
  else if (n % 7 == 5)
    printf("OYGBI\n");
  else if (n % 7 == 6)
    printf("OYGBIV\n");
  return 0;
}
