A, B = map(int, input().split()) a = set(str(abs(A))[1:]) b = set(str(abs(A))[1:]) if len(a) == 1 and len(b) == 1 and A % 10 == 0 and B % 10 == 0 and (A > 99 or A < -99) and (B > 99 or B < -99): X = A * B // 10 else: if -99999999 <= A * B <= 99999999: X = A * B else: X = 'E' print(X)