import java.util.*;
public class Main{
public static void dfs(Stack<Integer> stack){
if(stack.size() == 0){
return;
}
int count = stack.pop();
dfs(stack);
System.out.print(count + " ");
}
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
Stack<Integer> stack = new Stack<>();
int n = sc.nextInt();
int i = 0;
while(i < n){
int a = sc.nextInt();
stack.push(a);
i++;
}
dfs(stack);
}
}
public class Main{
public static void dfs(Stack<Integer> stack){
if(stack.size() == 0){
return;
}
int count = stack.pop();
dfs(stack);
System.out.print(count + " ");
}
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
Stack<Integer> stack = new Stack<>();
int n = sc.nextInt();
int i = 0;
while(i < n){
int a = sc.nextInt();
stack.push(a);
i++;
}
dfs(stack);
}
}