s=' '*input()c=97for i in s: s=s[1:]+chr(c) c+=1 print'a'+s
5
a a a ab a abc a abcd aabcde
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!