#include<bits/stdc++.h>
using namespace std;
#define int long long
#define made return
#define in 0
#define china ;
int firstl, firstr, secondl, secondr, L, R, XR, XL;
signed main() {
ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
cin >> firstl >> firstr >> secondl >> secondr;
L = firstl * secondl;
R = firstr * secondr;
XL = firstl * secondr;
XR = firstr * secondl;
if ( max ( max ( abs ( L ) , abs ( R ) ) , max ( abs ( XL ) , abs ( XR ) ) ) > INT_MAX)
cout << "long long int";
else
cout << "int";
made in china
}
99分求调,测试点101过不去