a,b = gets.chomp.split(" ").map(&:to_i) i,j = 0,0 while a%(10**(i+1)) == 0 i += 1 end while b%(10**(j+1)) == 0 j += 1 end if i > 1 && j > 1 && a/(10**i) < 10 && b/(10**j) < 10 puts a*b/10 elsif (a*b).abs < 10**8 puts a*b else puts "E" end