#include <bits/stdc++.h>
char c[] = "VIBRGYO";
int a[] = {1, 2, 3, 4, 5, 6, 3};
int main() {
  int n, i, j;
  scanf("%d", &n);
  for (i = j = 0; i < n; i++, j = a[j]) putchar(c[j]);
  puts("");
  return 0;
}
