print("".join(s*i for i,s in zip([1,4,2,5], ['a','q','s','z'])))
Standard input is empty
aqqqqsszzzzz
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!