def ascan; gets.split.map(&:to_i); end n,m = ascan p m**n