while(1):
 a=[c for c in input() if c.isalnum()]
 print(' '.join(a+b for a,b in zip(a,a[1:])))