A, B = map(int, input().split()) a = set(str(abs(A))) b = set(str(abs(B))) if len(a) < 3 and len(b) < 3 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)