import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

/**
 * Created by khrom on 2017/06/29.
 */
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        List<String> nums = new ArrayList<>();
        int index = scanner.nextInt();
        for (int i = 0; i < index; i++) {
            nums.add(scanner.next());
        }
        StringBuilder strb = new StringBuilder();
        for (int i = nums.size() - 1; i >= 0; i--) strb.append(nums.get(i) + " ");
        strb.deleteCharAt(strb.length() - 1);
        System.out.println(strb.toString());
    }
} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        List<String> nums = new ArrayList<>();
        int index = scanner.nextInt();
        for (int i = 0; i < index; i++) {
            nums.add(scanner.next());
        }
        StringBuilder strb = new StringBuilder();
        for (int i = nums.size() - 1; i >= 0; i--) strb.append(nums.get(i) + " ");
        strb.deleteCharAt(strb.length() - 1);
        System.out.println(strb.toString());
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        List<String> nums = new ArrayList<>();
        int index = scanner.nextInt();
        for (int i = 0; i < index; i++) {
            nums.add(scanner.next());
        }
        StringBuilder strb = new StringBuilder();
        for (int i = nums.size() - 1; i >= 0; i--) strb.append(nums.get(i) + " ");
        strb.deleteCharAt(strb.length() - 1);
        System.out.println(strb.toString());
    } main {
        Scanner scanner = new Scanner(System.in);
        List<String> nums = new ArrayList<>();
        int index = scanner.nextInt();
        for (int i = 0; i < index; i++) {
            nums.add(scanner.next());
        }
        StringBuilder strb = new StringBuilder();
        for (int i = nums.size() - 1; i >= 0; i--) strb.append(nums.get(i) + " ");
        strb.deleteCharAt(strb.length() - 1);
        System.out.println(strb.toString());
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) List<String> nums = new ArrayList<>(); nums new ArrayList<>() int index = scanner.nextInt(); index scanner.nextInt() scanner.nextInt scanner for (int i = 0; i < index; i++) {
            nums.add(scanner.next());
        } int i = 0; int i = 0; i 0 i < index i index i++ i++ i {
            nums.add(scanner.next());
        } {
            nums.add(scanner.next());
        } nums.add(scanner.next()) nums.add nums scanner.next() scanner.next scanner StringBuilder strb = new StringBuilder(); strb new StringBuilder() for (int i = nums.size() - 1; i >= 0; i--) strb.append(nums.get(i) + " "); int i = nums.size() - 1; int i = nums.size() - 1; i nums.size() - 1 nums.size() nums.size nums 1 i >= 0 i 0 i-- i-- i strb.append(nums.get(i) + " "); strb.append(nums.get(i) + " ") strb.append strb nums.get(i) + " " nums.get(i) nums.get nums i " " strb.deleteCharAt(strb.length() - 1) strb.deleteCharAt strb strb.length() - 1 strb.length() strb.length strb 1 System.out.println(strb.toString()) System.out.println System.out System System.out strb.toString() strb.toString strb String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        List<String> nums = new ArrayList<>();
        int index = scanner.nextInt();
        for (int i = 0; i < index; i++) {
            nums.add(scanner.next());
        }
        StringBuilder strb = new StringBuilder();
        for (int i = nums.size() - 1; i >= 0; i--) strb.append(nums.get(i) + " ");
        strb.deleteCharAt(strb.length() - 1);
        System.out.println(strb.toString());
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        List<String> nums = new ArrayList<>();
        int index = scanner.nextInt();
        for (int i = 0; i < index; i++) {
            nums.add(scanner.next());
        }
        StringBuilder strb = new StringBuilder();
        for (int i = nums.size() - 1; i >= 0; i--) strb.append(nums.get(i) + " ");
        strb.deleteCharAt(strb.length() - 1);
        System.out.println(strb.toString());
    }
} Main
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

/**
 * Created by khrom on 2017/06/29.
 */
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        List<String> nums = new ArrayList<>();
        int index = scanner.nextInt();
        for (int i = 0; i < index; i++) {
            nums.add(scanner.next());
        }
        StringBuilder strb = new StringBuilder();
        for (int i = nums.size() - 1; i >= 0; i--) strb.append(nums.get(i) + " ");
        strb.deleteCharAt(strb.length() - 1);
        System.out.println(strb.toString());
    }
}