def make_a_list(i): iab = abs(i) L = list(str(iab)) return L def div10(L): if len(L) >= 3: for i in range(1,len(L)): if L[-i] != '0': return "calculator" elif i == len(L)-1 and L[i] == '0': return "in_her_head" elif len(L) < 3: return "calculator" def judge(des_a, des_b): if des_a == "in_her_head" and des_b == "in_her_head": return "in_her_head" else: return "calculator" def cal(des): if des == "in_her_head": print(int(A*B / 10)) elif des == "calculator": if abs(A*B) > 99999999: print('E') elif abs(A*B) <= 99999999: print(A*B) A, B = map(int,input().split()) la = make_a_list(A) lb = make_a_list(B) wa = div10(la) wb = div10(lb) des = "undecided" des = judge(wa,wb) cal(des)