#include #include #include using namespace std; int d(int x){ int D = 10000000; for(; 1 != D && 0 != (x % D); D /= 10){} return D; } int main(void){ int A, B; cin >> A >> B; int DA = d(A); int a = A / DA; int DB = d(B); int b = B / DB; long long LLA = (long long)a; long long LLB = (long long)b; long long LLDA = (long long)DA; long long LLDB = (long long)DB; long long product = LLA * LLB * LLDA * LLDB; if(abs(a) < 10 && abs(b) < 10 ){ cout << product / 10 << endl; return 0; } if(100000000 <= abs(product)){ cout << 'E' << endl; return 0; } cout << product << endl; return 0; }