before = "s" (gets.to_i - 1).times do after = ('a'..'m').to_a[rand(12)] puts before + after before = after end print before + "n"