a, b = map(int, input().split()) aa = a bb = b flag = True while True: if aa % 10 != 0: if not (-9 <= aa <= 9): flag = False break if bb % 10 != 0: if not (-9 <= bb <= 9): flag = False break if not (-9 <= aa <= 9): aa //= 10 if not (-9 <= bb <= 9): bb //= 10 if -9 <= aa <= 9 and -9 <= bb <= 9: break if flag: print(a * b // 10) else: ans = a * b if not (-99999999 <= ans <= 99999999): ans = 'E' print(ans)