import java.util.Scanner;
// 比较简单,不是我闲的慌,刷到这样的题了,写完了,不上传,感觉哪里不对劲
public class Main{
public static String function() {
Scanner scan = new Scanner(System.in);
String[] array = scan.nextLine().split(" ");
StringBuilder sb = new StringBuilder("");
for(int i=array.length-1; i>=0; i--) {
if(i == 0)
sb.append(array[i]);
else
sb.append(array[i].concat(" "));
}
scan.close();
return sb.toString();
}
public static void main(String[] args) {
System.out.println(function());
}
}