import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] str = sc.nextLine().split(" ");
        StringBuffer sb = new StringBuffer();
        for (int i = str.length-1;i>=0;i--){
            sb.append(str[i]+" ");
        }
        System.out.println(sb.toString().substring(0,sb.toString().length()-1));
    }
}