import java.io.*; import java.util.*; public class Main{ public static void main(String[] args) throws IOException{ BufferedReader ir=new BufferedReader(new InputStreamReader(System.in,"UTF-8")); String s=ir.readLine(); ArrayList ans=new ArrayList<>(); ans.add(""); int l=0,ma=0; while(lma){ ma=i-st; ans.clear(); ans.add(s.substring(l,st)); } else if(i-st==ma) ans.add(s.substring(l,st)); l=i--; } } for(String ss : ans){ System.out.println(ss); } } }