while 1: a,s=raw_input().split(" ");i=0 for j in eval(a or`a`):print s[i:j],;i=j print s[i:]