#include <bits/stdc++.h>
using namespace std;
char col[7] = {'R', 'O', 'Y', 'G', 'B', 'I', 'V'};
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n - 3; i++) cout << col[i % 4];
  for (int i = 0; i < 3; i++) cout << col[i + 4];
  cout << endl;
  return 0;
}
