#include #include #include #include #include #include using namespace std; typedef long long int lint; int main() { lint A, B; cin >> A >> B; lint a = A; lint b = B; lint cnta = 0; lint cntaa = 0; while (a) { if (a % 10) { cnta++; } a /= 10; cntaa++; } lint cntb = 0; lint cntbb = 0; while (b) { if (b % 10) { cntb++; } b /= 10; cntbb++; } if (cnta == 1 && cntb == 1 && cntaa <= 3 && cntbb <= 3) { cout << A * B / 10 << endl; } else { if (A * B < -99999999 || A * B>99999999) { cout << 'E' << endl; } else { cout << A * B << endl; } } }