a, b = gets.chomp.split.map &:to_i aa = gets.chomp.split.map &:to_i if(b != 0) aaa = 1 (1..(a-b)).each{|d|aaa*=d} p aaa