import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args)throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] tf = br.readLine().split(" "); for(int i= tf.length-1; i >= 0 ; i--) { if(i != 0) { System.out.print(tf[i]+" "); }else { System.out.println(tf[i]); } } } }