#include <bits/stdc++.h>
using namespace std;
long long a, b, c, d;
bool check(long long x, long long y)
{
if (x * y >= -2147483648 && x * y <= 2147483647)
{
return 1;
}
else
{
return 0;
}
}
int main()
{
cin >> a >> b >> c >> d;
if (check(a, b) && check(a, d) && check(b, c) && check(b, d))
{
cout << "int" << '\n';
}
else
{
cout << "long long int" << '\n';
}
return 0;
}