#include <bits/stdc++.h>
using namespace std;
long long int gcd(long long int a, long long int b) {
  while (a && b) a > b ? a %= b : b %= a;
  return a + b;
}
long long int lcm(long long int a, long long int b) {
  return (max(a, b) / gcd(a, b)) * min(a, b);
}
int main() {
  ios::sync_with_stdio(0);
  ;
  long long int i, j, k, c = 0, n, m, d = 0;
  string s = "ROYGBIV";
  cin >> n;
  for (i = 8; i <= n; i++) {
    s += s[c + 3];
    c = (c + 1) % 4;
  }
  cout << s;
  return 0;
}
