a, b = map(int, input().split()) if a * b < 0: f = -1 else: f = 1 A = abs(a) B = abs(b) if int(A)%(10**(len(str(A)) - 1)) == 0 and int(B)%(10**(len(str(B)) -1)) == 0: ans = str(int(A)*int(B)) if ans == '1': if f == -1: print('-1') else: print('1') else: if f == -1: ans = "-"+ans print(ans[:-1]) else: ans = a * b if -99999999 <= ans <= 99999999: print(ans) else: print('E')