a,n=gets.split.map &:to_i b=1 n.times{break if 1e7