#include #define MAX 99999999 int main(void) { long long a, b; std::cin >> a >> b; if(((a % 100) == 0) && ((b % 100) == 0)) { long long aa = abs(a), bb = abs(b); while(((aa % 10) != 0) && ((bb % 10) != 0)) { if((aa % 10) == 0) aa /= 10; if((bb % 10) == 0) bb /= 10; } if((aa <= 9) && (bb <= 9)) { std::cout << ((a * b) / 10) << std::endl; return 0; } } if((long long)abs(a) * (long long)abs(b) > MAX) { std::cout << "E" << std::endl; return 0; } std::cout << (a * b) << std::endl; return 0; }