#include #include #include using lint = long long; void solve() { std::set tens; { lint ten = 100; for (int i = 0; i < 10; ++i) { for (int d = -9; d <= 9; ++d) { tens.insert(ten * d); } ten *= 10; } tens.erase(0); } lint a, b; std::cin >> a >> b; if (tens.count(a) && tens.count(b)) { std::cout << a * b / 10 << std::endl; return; } auto ans = a * b; if (std::abs(ans) >= 100000000LL) { std::cout << "E"; } else { std::cout << ans; } std::cout << std::endl; } int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); solve(); return 0; }