s,n=input()k=nwhile k<=len(s):print s[k-n:k].ljust(n)+'\n'+s[k+n-1:k-1:-1];k+=2*n
"Programming Puzzles & Code Golf", 4
Prog mmar ing zzuP les oC & de G flo
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!