import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;

public class Main {

	public static void main(String[] args) {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String buffer;
		boolean first = true;
		int amount = 0;
		List<Integer> list = new ArrayList<Integer>();
		try {
			while ((buffer = reader.readLine())  != null) {
				if (first) {
					first = false;
					amount = Integer.valueOf(buffer.substring(0, buffer.indexOf(" ") == -1 ? buffer.length() : buffer.indexOf(" ")));
					list = new ArrayList<Integer>();
				}
				else {
					first = true;
					for (int i = 0; i < amount; i++) {
						list.add(Integer.valueOf(buffer.substring(0, buffer.indexOf(" ") == -1 ? buffer.length() : buffer.indexOf(" "))));
						buffer = buffer.substring(buffer.indexOf(" ") + 1);
					}
					for (int i = 0; i < amount; i++) {
						if (i != 0) System.out.print(" ");
						System.out.print(list.get(amount - i - 1));
					}
					System.out.println();
				}
			}
		} catch (Exception ex) {
			ex.printStackTrace();
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util public class Main {

	public static void main(String[] args) {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String buffer;
		boolean first = true;
		int amount = 0;
		List<Integer> list = new ArrayList<Integer>();
		try {
			while ((buffer = reader.readLine())  != null) {
				if (first) {
					first = false;
					amount = Integer.valueOf(buffer.substring(0, buffer.indexOf(" ") == -1 ? buffer.length() : buffer.indexOf(" ")));
					list = new ArrayList<Integer>();
				}
				else {
					first = true;
					for (int i = 0; i < amount; i++) {
						list.add(Integer.valueOf(buffer.substring(0, buffer.indexOf(" ") == -1 ? buffer.length() : buffer.indexOf(" "))));
						buffer = buffer.substring(buffer.indexOf(" ") + 1);
					}
					for (int i = 0; i < amount; i++) {
						if (i != 0) System.out.print(" ");
						System.out.print(list.get(amount - i - 1));
					}
					System.out.println();
				}
			}
		} catch (Exception ex) {
			ex.printStackTrace();
		}
	}
} Main public static void main(String[] args) {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String buffer;
		boolean first = true;
		int amount = 0;
		List<Integer> list = new ArrayList<Integer>();
		try {
			while ((buffer = reader.readLine())  != null) {
				if (first) {
					first = false;
					amount = Integer.valueOf(buffer.substring(0, buffer.indexOf(" ") == -1 ? buffer.length() : buffer.indexOf(" ")));
					list = new ArrayList<Integer>();
				}
				else {
					first = true;
					for (int i = 0; i < amount; i++) {
						list.add(Integer.valueOf(buffer.substring(0, buffer.indexOf(" ") == -1 ? buffer.length() : buffer.indexOf(" "))));
						buffer = buffer.substring(buffer.indexOf(" ") + 1);
					}
					for (int i = 0; i < amount; i++) {
						if (i != 0) System.out.print(" ");
						System.out.print(list.get(amount - i - 1));
					}
					System.out.println();
				}
			}
		} catch (Exception ex) {
			ex.printStackTrace();
		}
	} main {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String buffer;
		boolean first = true;
		int amount = 0;
		List<Integer> list = new ArrayList<Integer>();
		try {
			while ((buffer = reader.readLine())  != null) {
				if (first) {
					first = false;
					amount = Integer.valueOf(buffer.substring(0, buffer.indexOf(" ") == -1 ? buffer.length() : buffer.indexOf(" ")));
					list = new ArrayList<Integer>();
				}
				else {
					first = true;
					for (int i = 0; i < amount; i++) {
						list.add(Integer.valueOf(buffer.substring(0, buffer.indexOf(" ") == -1 ? buffer.length() : buffer.indexOf(" "))));
						buffer = buffer.substring(buffer.indexOf(" ") + 1);
					}
					for (int i = 0; i < amount; i++) {
						if (i != 0) System.out.print(" ");
						System.out.print(list.get(amount - i - 1));
					}
					System.out.println();
				}
			}
		} catch (Exception ex) {
			ex.printStackTrace();
		}
	} BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) String buffer; buffer boolean first = true; first true int amount = 0; amount 0 List<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() try {
			while ((buffer = reader.readLine())  != null) {
				if (first) {
					first = false;
					amount = Integer.valueOf(buffer.substring(0, buffer.indexOf(" ") == -1 ? buffer.length() : buffer.indexOf(" ")));
					list = new ArrayList<Integer>();
				}
				else {
					first = true;
					for (int i = 0; i < amount; i++) {
						list.add(Integer.valueOf(buffer.substring(0, buffer.indexOf(" ") == -1 ? buffer.length() : buffer.indexOf(" "))));
						buffer = buffer.substring(buffer.indexOf(" ") + 1);
					}
					for (int i = 0; i < amount; i++) {
						if (i != 0) System.out.print(" ");
						System.out.print(list.get(amount - i - 1));
					}
					System.out.println();
				}
			}
		} catch (Exception ex) {
			ex.printStackTrace();
		} catch (Exception ex) {
			ex.printStackTrace();
		} Exception ex {
			ex.printStackTrace();
		} ex.printStackTrace() ex.printStackTrace ex {
			while ((buffer = reader.readLine())  != null) {
				if (first) {
					first = false;
					amount = Integer.valueOf(buffer.substring(0, buffer.indexOf(" ") == -1 ? buffer.length() : buffer.indexOf(" ")));
					list = new ArrayList<Integer>();
				}
				else {
					first = true;
					for (int i = 0; i < amount; i++) {
						list.add(Integer.valueOf(buffer.substring(0, buffer.indexOf(" ") == -1 ? buffer.length() : buffer.indexOf(" "))));
						buffer = buffer.substring(buffer.indexOf(" ") + 1);
					}
					for (int i = 0; i < amount; i++) {
						if (i != 0) System.out.print(" ");
						System.out.print(list.get(amount - i - 1));
					}
					System.out.println();
				}
			}
		} while ((buffer = reader.readLine())  != null) {
				if (first) {
					first = false;
					amount = Integer.valueOf(buffer.substring(0, buffer.indexOf(" ") == -1 ? buffer.length() : buffer.indexOf(" ")));
					list = new ArrayList<Integer>();
				}
				else {
					first = true;
					for (int i = 0; i < amount; i++) {
						list.add(Integer.valueOf(buffer.substring(0, buffer.indexOf(" ") == -1 ? buffer.length() : buffer.indexOf(" "))));
						buffer = buffer.substring(buffer.indexOf(" ") + 1);
					}
					for (int i = 0; i < amount; i++) {
						if (i != 0) System.out.print(" ");
						System.out.print(list.get(amount - i - 1));
					}
					System.out.println();
				}
			} (buffer = reader.readLine())  != null (buffer = reader.readLine()) buffer reader.readLine() reader.readLine reader null {
				if (first) {
					first = false;
					amount = Integer.valueOf(buffer.substring(0, buffer.indexOf(" ") == -1 ? buffer.length() : buffer.indexOf(" ")));
					list = new ArrayList<Integer>();
				}
				else {
					first = true;
					for (int i = 0; i < amount; i++) {
						list.add(Integer.valueOf(buffer.substring(0, buffer.indexOf(" ") == -1 ? buffer.length() : buffer.indexOf(" "))));
						buffer = buffer.substring(buffer.indexOf(" ") + 1);
					}
					for (int i = 0; i < amount; i++) {
						if (i != 0) System.out.print(" ");
						System.out.print(list.get(amount - i - 1));
					}
					System.out.println();
				}
			} if (first) {
					first = false;
					amount = Integer.valueOf(buffer.substring(0, buffer.indexOf(" ") == -1 ? buffer.length() : buffer.indexOf(" ")));
					list = new ArrayList<Integer>();
				}
				else {
					first = true;
					for (int i = 0; i < amount; i++) {
						list.add(Integer.valueOf(buffer.substring(0, buffer.indexOf(" ") == -1 ? buffer.length() : buffer.indexOf(" "))));
						buffer = buffer.substring(buffer.indexOf(" ") + 1);
					}
					for (int i = 0; i < amount; i++) {
						if (i != 0) System.out.print(" ");
						System.out.print(list.get(amount - i - 1));
					}
					System.out.println();
				} first {
					first = false;
					amount = Integer.valueOf(buffer.substring(0, buffer.indexOf(" ") == -1 ? buffer.length() : buffer.indexOf(" ")));
					list = new ArrayList<Integer>();
				} first = false first false amount = Integer.valueOf(buffer.substring(0, buffer.indexOf(" ") == -1 ? buffer.length() : buffer.indexOf(" "))) amount Integer.valueOf(buffer.substring(0, buffer.indexOf(" ") == -1 ? buffer.length() : buffer.indexOf(" "))) Integer.valueOf Integer buffer.substring(0, buffer.indexOf(" ") == -1 ? buffer.length() : buffer.indexOf(" ")) buffer.substring buffer 0 buffer.indexOf(" ") == -1 ? buffer.length() : buffer.indexOf(" ") buffer.indexOf(" ") == -1 buffer.indexOf(" ") buffer.indexOf buffer " " -1 1 buffer.length() buffer.length buffer buffer.indexOf(" ") buffer.indexOf buffer " " list = new ArrayList<Integer>() list new ArrayList<Integer>() {
					first = true;
					for (int i = 0; i < amount; i++) {
						list.add(Integer.valueOf(buffer.substring(0, buffer.indexOf(" ") == -1 ? buffer.length() : buffer.indexOf(" "))));
						buffer = buffer.substring(buffer.indexOf(" ") + 1);
					}
					for (int i = 0; i < amount; i++) {
						if (i != 0) System.out.print(" ");
						System.out.print(list.get(amount - i - 1));
					}
					System.out.println();
				} first = true first true for (int i = 0; i < amount; i++) {
						list.add(Integer.valueOf(buffer.substring(0, buffer.indexOf(" ") == -1 ? buffer.length() : buffer.indexOf(" "))));
						buffer = buffer.substring(buffer.indexOf(" ") + 1);
					} int i = 0; int i = 0; i 0 i < amount i amount i++ i++ i {
						list.add(Integer.valueOf(buffer.substring(0, buffer.indexOf(" ") == -1 ? buffer.length() : buffer.indexOf(" "))));
						buffer = buffer.substring(buffer.indexOf(" ") + 1);
					} {
						list.add(Integer.valueOf(buffer.substring(0, buffer.indexOf(" ") == -1 ? buffer.length() : buffer.indexOf(" "))));
						buffer = buffer.substring(buffer.indexOf(" ") + 1);
					} list.add(Integer.valueOf(buffer.substring(0, buffer.indexOf(" ") == -1 ? buffer.length() : buffer.indexOf(" ")))) list.add list Integer.valueOf(buffer.substring(0, buffer.indexOf(" ") == -1 ? buffer.length() : buffer.indexOf(" "))) Integer.valueOf Integer buffer.substring(0, buffer.indexOf(" ") == -1 ? buffer.length() : buffer.indexOf(" ")) buffer.substring buffer 0 buffer.indexOf(" ") == -1 ? buffer.length() : buffer.indexOf(" ") buffer.indexOf(" ") == -1 buffer.indexOf(" ") buffer.indexOf buffer " " -1 1 buffer.length() buffer.length buffer buffer.indexOf(" ") buffer.indexOf buffer " " buffer = buffer.substring(buffer.indexOf(" ") + 1) buffer buffer.substring(buffer.indexOf(" ") + 1) buffer.substring buffer buffer.indexOf(" ") + 1 buffer.indexOf(" ") buffer.indexOf buffer " " 1 for (int i = 0; i < amount; i++) {
						if (i != 0) System.out.print(" ");
						System.out.print(list.get(amount - i - 1));
					} int i = 0; int i = 0; i 0 i < amount i amount i++ i++ i {
						if (i != 0) System.out.print(" ");
						System.out.print(list.get(amount - i - 1));
					} {
						if (i != 0) System.out.print(" ");
						System.out.print(list.get(amount - i - 1));
					} if (i != 0) System.out.print(" "); i != 0 i 0 System.out.print(" ") System.out.print System.out System System.out " " System.out.print(list.get(amount - i - 1)) System.out.print System.out System System.out list.get(amount - i - 1) list.get list amount - i - 1 amount - i - 1 amount i 1 System.out.println() System.out.println System.out System System.out String[] args args public class Main {

	public static void main(String[] args) {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String buffer;
		boolean first = true;
		int amount = 0;
		List<Integer> list = new ArrayList<Integer>();
		try {
			while ((buffer = reader.readLine())  != null) {
				if (first) {
					first = false;
					amount = Integer.valueOf(buffer.substring(0, buffer.indexOf(" ") == -1 ? buffer.length() : buffer.indexOf(" ")));
					list = new ArrayList<Integer>();
				}
				else {
					first = true;
					for (int i = 0; i < amount; i++) {
						list.add(Integer.valueOf(buffer.substring(0, buffer.indexOf(" ") == -1 ? buffer.length() : buffer.indexOf(" "))));
						buffer = buffer.substring(buffer.indexOf(" ") + 1);
					}
					for (int i = 0; i < amount; i++) {
						if (i != 0) System.out.print(" ");
						System.out.print(list.get(amount - i - 1));
					}
					System.out.println();
				}
			}
		} catch (Exception ex) {
			ex.printStackTrace();
		}
	}
} public class Main {

	public static void main(String[] args) {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String buffer;
		boolean first = true;
		int amount = 0;
		List<Integer> list = new ArrayList<Integer>();
		try {
			while ((buffer = reader.readLine())  != null) {
				if (first) {
					first = false;
					amount = Integer.valueOf(buffer.substring(0, buffer.indexOf(" ") == -1 ? buffer.length() : buffer.indexOf(" ")));
					list = new ArrayList<Integer>();
				}
				else {
					first = true;
					for (int i = 0; i < amount; i++) {
						list.add(Integer.valueOf(buffer.substring(0, buffer.indexOf(" ") == -1 ? buffer.length() : buffer.indexOf(" "))));
						buffer = buffer.substring(buffer.indexOf(" ") + 1);
					}
					for (int i = 0; i < amount; i++) {
						if (i != 0) System.out.print(" ");
						System.out.print(list.get(amount - i - 1));
					}
					System.out.println();
				}
			}
		} catch (Exception ex) {
			ex.printStackTrace();
		}
	}
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;

public class Main {

	public static void main(String[] args) {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String buffer;
		boolean first = true;
		int amount = 0;
		List<Integer> list = new ArrayList<Integer>();
		try {
			while ((buffer = reader.readLine())  != null) {
				if (first) {
					first = false;
					amount = Integer.valueOf(buffer.substring(0, buffer.indexOf(" ") == -1 ? buffer.length() : buffer.indexOf(" ")));
					list = new ArrayList<Integer>();
				}
				else {
					first = true;
					for (int i = 0; i < amount; i++) {
						list.add(Integer.valueOf(buffer.substring(0, buffer.indexOf(" ") == -1 ? buffer.length() : buffer.indexOf(" "))));
						buffer = buffer.substring(buffer.indexOf(" ") + 1);
					}
					for (int i = 0; i < amount; i++) {
						if (i != 0) System.out.print(" ");
						System.out.print(list.get(amount - i - 1));
					}
					System.out.println();
				}
			}
		} catch (Exception ex) {
			ex.printStackTrace();
		}
	}
}