import java.util.*;enum E{E;System z;String t;{for(Scanner s=new Scanner(z.in);s==s;z.out.printf("%"+(21+t.length())/2+"s\n",t))t=s.nextLine();}}