s = "11 12 13 14"print(" ".join([str(int(x)+1) for x in s.split()]))
Standard input is empty
12 13 14 15
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!