n, m = map(int, input().split(" ")) check_num = lambda x: True if x % pow(10, len(str(x)) - 1) == 0 else False if check_num(n) and check_num(m): print(n * m // 10) print(check_num(m)) else: ans = n * m if -99999999 <= ans and ans <= 99999999: print(ans) else: print("E")