puts ('a'..'m').to_a.repeated_combination(18).take(gets.to_i).map{|x|'a'+x.join('')+'a'}