for(;;)print.apply(a=readline(),a.match('\\w{'+(a.length-2)/a[0]+'}','g'))