char*x,*y;main(a){for(;x=gets(&a);)for(;*x>32;x++)for(y=strchr(x,32);*++y;)printf("%c%c%c",*x,*y,x[1]+y[1]>32?32:10);}