import java.io.*;
public class Main{
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
String str=br.readLine();
int n = str.length();
int i=0;
while(n!=0) {
if(n<10) {
bw.write(str.substring(i, i+n)+"\n");
break;
}
bw.write(str.substring(i, 10+i)+"\n");
n-=10;
i+=10;
}
br.close();
bw.flush();
bw.close();
}
}