#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string ans = "ROYG";
  string colors = "ROYGBIV";
  reverse(colors.begin(), colors.end());
  for (int i = 4; i < n; i++) {
    char x;
    for (int a = 0; a < (int)colors.length(); a++) {
      if (ans[i - 1] != colors[a] && ans[i - 2] != colors[a] &&
          ans[i - 3] != colors[a] && ans[0] != colors[a] &&
          ans[1] != colors[a] && ans[0] != colors[a]) {
        x = colors[a];
        break;
      }
    }
    ans += x;
  }
  cout << ans;
  return 0;
}
