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