import java.io.*; class test{ public static void main(String[]x)throws Exception{ BufferedReader i=new BufferedReader(new InputStreamReader(System.in)); String[] t=new String[99]; int j=0; for(;;j++){ t[j]=i.readLine(); if(t[j]==null)break; } System.out.println(t[j-1]); for(int k=0;k<j-1;k++)System.out.println(t[k]); } }
Note that non-ascii characters in the above source code will be escaped (such as \x9f).