#include <bits/stdc++.h>
using namespace std;
const long long N = 1e9;
int main() {
  int m, x, t, k, r, ma = 10000000, mi, y, d, a1[100], b, b1[100];
  int i, l, a[100], j, n;
  cin >> n;
  char s1[7] = {'R', 'O', 'Y', 'G', 'B', 'I', 'V'};
  for (i = 0; i < 7; i++) {
    cout << s1[i];
    if (i == 6) i -= 4;
    n--;
    if (n == 0) break;
  }
  return 0;
}
