#include using namespace std; bool check(int X) { string S = to_string(abs(X)); int zero = 0; for (char C : S) { if (C == '0') zero++; } return zero == (int)S.size() - 1 && zero > 1? true : false; } void calc(int64_t A, int64_t B, bool M) { if (M) { cout << A * B / 10 << endl; } else { if (A * B >= -99999999 && A * B <= 99999999) cout << A * B << endl; else cout << 'E' << endl; } } int main() { int64_t A, B; cin >> A >> B; calc(A, B, check(A) == true && check(B) == true); }