using namespace std;
int main() {
    int x,y;
    cin >> x >> y;
    int count=0;
    if(x%2==0&&y%2==0) cout << "gg";
    else cout << "ii";
}