def isAnzan(n: int) -> bool: n = abs(n) if n<100: return False res = n rem = 0 i = 0 while res > 0: rem += res%10 res //= 10 i += 1 if n == rem*10**(i-1): return True else: return False A, B = map(int, input().split()) if isAnzan(A) and isAnzan(B): print(A*B//10) else: if abs(A*B)<10**8: print(A*B) else: print("E")