#include #include #include #include #include #include using namespace std; typedef long long int lont; int main() { int a, b; cin >> a >> b; int A, B; A = a; B = b; int ca = 0; int cb = 0; for (int ia = 0; ia < 20; ia++) { if (A % 10) { ca++; } A /= 10; } for (int ib = 0; ib < 20; ib++) { if (B % 10) { cb++; } B /= 10; } if (ca == 1 && cb == 1) { cout << a * b / 10 << endl; } else { if (a * b < -99999999 || a * b>99999999) { cout << 'E' << endl; } else { cout << a * b << endl; } } }