n = gets a = gets.split b = gets.split puts 1 puts a.permutation(n).to_a