#include<bits/stdc++.h>
using namespace std;
long long s;
long long a,b,c,d;
int main(){
cin>>a>>b>>c>>d;
if(a*c>2147483647)cout<<"long long int";
else if(a*c< -2147483647)cout<<"long long int";
else if(b*d>2147483647)cout<<"long long int";
else if(b*d< -2147483647)cout<<"long long int";
else if(a*d< -2147483647)cout<<"long long int";
else if(a*d>2147483647)cout<<"long long int";
else if(b*c< -2147483647)cout<<"long long int";
else if(b*c>2147483647)cout<<"long long int";
else cout<<"int";
}