#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string colors = "ROYGBIV";
  string remainder = "GBIVGB";
  string answer = "";
  for (int i = 0; i < n / 7; ++i) {
    answer += colors;
  }
  for (int i = 0; i < n % 7; ++i) {
    answer += remainder[i];
  }
  cout << answer;
}
