for(;;)print.apply(s=readline(),s.match("\\S{"+~-~-s.length/s[0]+"}","g"))