/* -*- coding: utf-8 -*- * * 722.cc: No.722 100×100=1000 - yukicoder */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; /* constant */ /* typedef */ typedef long long ll; /* global variables */ /* subroutines */ /* main */ int main() { int a, b; scanf("%d%d", &a, &b); int n = 0, m = 0; while (a != 0 && a % 10 == 0) a /= 10, n++; while (b != 0 && b % 10 == 0) b /= 10, m++; if (a != 0 && a >= -9 && a <= 9 && n >= 2 && b != 0 && b >= -9 && b <= 9 && m >= 2) { printf("%d", a * b); for (int k = n + m - 1; k > 0; k--) putchar('0'); putchar('\n'); } else { ll c = (ll)a * b; for (int k = n + m; k > 0; k--) c *= 10; if (c >= -99999999 && c <= 99999999) printf("%lld\n", c); else puts("E"); } return 0; }