a, b = input().split() if a[0] == "-": ma = -1 a = a[1:] else: ma = 1 if b[0] == "-": mb = -1 b = b[1:] else: mb = 1 if a[1:] == "0" * (len(a) - 1) and b[1:] == "0" * (len(b) - 1) and len(a) >= 3 and len(b) >= 3: q = 10 ** (len(a) + len(b) - 3) * int(a[0]) * int(b[0]) * ma * mb print(q) else: q = int(a) * int(b) * ma * mb if -99999999 <= q <= 99999999: print(q) else: print("E")