puts ('a'..'m').to_a.permutation(9).take(gets.to_i-1).map{|x|"a#{x.join''}a"};puts :an