#include <bits/stdc++.h>
const double eps = 1e-7, PI = 3.1415926;
const int N = 5e5;
using namespace std;
int n, m, k, x, y, a[N], mx = -1, mn = 1e9, sum;
char c[] = {'R', 'O', 'Y', 'G', 'B', 'I', 'V'}, c2[] = {'G', 'B', 'I', 'V'};
string s, s1, s2;
map<int, int> mp;
vector<int> vec;
int main() {
  scanf("%d", &n);
  for (int i = 0; i < 7; i++) cout << c[i];
  n -= 7;
  for (int i = 0; i < n; i++) cout << c2[i % 4];
  return 0;
}
