#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vll = vector<ll>;
using vvi = vector<vi>;
using pii = pair<int, ll>;
using vii = vector<pii>;
using vb = vector<bool>;
using vs = vector<string>;
const int inf = 1e6 + 3;
void solve(int tc) {
  while (tc--) {
    int n, c = 1;
    cin >> n;
    string e = "ROYGBIV", temp = "", extra = "GBIV";
    cout << e;
    int j = 0;
    for (int i = 7; i < n; i++) {
      cout << extra[j % 4];
      j++;
    }
  }
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int tc = 1;
  solve(tc);
  return 0;
}
