import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * Lesson6A　与えられた数列を逆順に出力するプログラム
 *
 * @author 前島佑介
 * @version 2014/12/1
 */
class Main {

	/**
	 * プログラムのエントリポイント
	 * @param args
	 */
	public static void main(String[] args) {

		// 1行目読み込む
		try {
			BufferedReader insBR = new BufferedReader(new InputStreamReader(
					System.in));

			String strNum = insBR.readLine();

			// 数値化
			int intNum = Integer.parseInt(strNum);

			// 2行目読み込む
			String strLine = insBR.readLine();

			// 2行目をばらけさせる
			String[] strAry = strLine.split(" ");

			// intにキャストして配列にいれる
			int[] intAry = new int[intNum];

			for (int i = 0; i < intNum; i++) {
				intAry[i] = Integer.parseInt(strAry[i]);
			}

			// 反転させる
			for (int i = 0; i < intNum / 2; i++) {

				int intChage = 0;
				intChage = intAry[i];
				intAry[i] = intAry[intNum - 1 - i];
				intAry[intNum - 1 - i] = intChage;

			}

			// 出力
			for (int i = 0; i < intNum; i++) {
				if(i ==0) {
					System.out.print(intAry[i]);
				} else {
					System.out.print(" " + intAry[i]);
				}
			}
			System.out.println("");


		} catch (IOException e) {
			System.out.println(e);
		} catch (NumberFormatException e) {
			System.out.println("数字で入力して下さい");
		}

	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io class Main {

	/**
	 * プログラムのエントリポイント
	 * @param args
	 */
	public static void main(String[] args) {

		// 1行目読み込む
		try {
			BufferedReader insBR = new BufferedReader(new InputStreamReader(
					System.in));

			String strNum = insBR.readLine();

			// 数値化
			int intNum = Integer.parseInt(strNum);

			// 2行目読み込む
			String strLine = insBR.readLine();

			// 2行目をばらけさせる
			String[] strAry = strLine.split(" ");

			// intにキャストして配列にいれる
			int[] intAry = new int[intNum];

			for (int i = 0; i < intNum; i++) {
				intAry[i] = Integer.parseInt(strAry[i]);
			}

			// 反転させる
			for (int i = 0; i < intNum / 2; i++) {

				int intChage = 0;
				intChage = intAry[i];
				intAry[i] = intAry[intNum - 1 - i];
				intAry[intNum - 1 - i] = intChage;

			}

			// 出力
			for (int i = 0; i < intNum; i++) {
				if(i ==0) {
					System.out.print(intAry[i]);
				} else {
					System.out.print(" " + intAry[i]);
				}
			}
			System.out.println("");


		} catch (IOException e) {
			System.out.println(e);
		} catch (NumberFormatException e) {
			System.out.println("数字で入力して下さい");
		}

	}
} Main /**
	 * プログラムのエントリポイント
	 * @param args
	 */
	public static void main(String[] args) {

		// 1行目読み込む
		try {
			BufferedReader insBR = new BufferedReader(new InputStreamReader(
					System.in));

			String strNum = insBR.readLine();

			// 数値化
			int intNum = Integer.parseInt(strNum);

			// 2行目読み込む
			String strLine = insBR.readLine();

			// 2行目をばらけさせる
			String[] strAry = strLine.split(" ");

			// intにキャストして配列にいれる
			int[] intAry = new int[intNum];

			for (int i = 0; i < intNum; i++) {
				intAry[i] = Integer.parseInt(strAry[i]);
			}

			// 反転させる
			for (int i = 0; i < intNum / 2; i++) {

				int intChage = 0;
				intChage = intAry[i];
				intAry[i] = intAry[intNum - 1 - i];
				intAry[intNum - 1 - i] = intChage;

			}

			// 出力
			for (int i = 0; i < intNum; i++) {
				if(i ==0) {
					System.out.print(intAry[i]);
				} else {
					System.out.print(" " + intAry[i]);
				}
			}
			System.out.println("");


		} catch (IOException e) {
			System.out.println(e);
		} catch (NumberFormatException e) {
			System.out.println("数字で入力して下さい");
		}

	} main {

		// 1行目読み込む
		try {
			BufferedReader insBR = new BufferedReader(new InputStreamReader(
					System.in));

			String strNum = insBR.readLine();

			// 数値化
			int intNum = Integer.parseInt(strNum);

			// 2行目読み込む
			String strLine = insBR.readLine();

			// 2行目をばらけさせる
			String[] strAry = strLine.split(" ");

			// intにキャストして配列にいれる
			int[] intAry = new int[intNum];

			for (int i = 0; i < intNum; i++) {
				intAry[i] = Integer.parseInt(strAry[i]);
			}

			// 反転させる
			for (int i = 0; i < intNum / 2; i++) {

				int intChage = 0;
				intChage = intAry[i];
				intAry[i] = intAry[intNum - 1 - i];
				intAry[intNum - 1 - i] = intChage;

			}

			// 出力
			for (int i = 0; i < intNum; i++) {
				if(i ==0) {
					System.out.print(intAry[i]);
				} else {
					System.out.print(" " + intAry[i]);
				}
			}
			System.out.println("");


		} catch (IOException e) {
			System.out.println(e);
		} catch (NumberFormatException e) {
			System.out.println("数字で入力して下さい");
		}

	} try {
			BufferedReader insBR = new BufferedReader(new InputStreamReader(
					System.in));

			String strNum = insBR.readLine();

			// 数値化
			int intNum = Integer.parseInt(strNum);

			// 2行目読み込む
			String strLine = insBR.readLine();

			// 2行目をばらけさせる
			String[] strAry = strLine.split(" ");

			// intにキャストして配列にいれる
			int[] intAry = new int[intNum];

			for (int i = 0; i < intNum; i++) {
				intAry[i] = Integer.parseInt(strAry[i]);
			}

			// 反転させる
			for (int i = 0; i < intNum / 2; i++) {

				int intChage = 0;
				intChage = intAry[i];
				intAry[i] = intAry[intNum - 1 - i];
				intAry[intNum - 1 - i] = intChage;

			}

			// 出力
			for (int i = 0; i < intNum; i++) {
				if(i ==0) {
					System.out.print(intAry[i]);
				} else {
					System.out.print(" " + intAry[i]);
				}
			}
			System.out.println("");


		} catch (IOException e) {
			System.out.println(e);
		} catch (NumberFormatException e) {
			System.out.println("数字で入力して下さい");
		} catch (IOException e) {
			System.out.println(e);
		} IOException e {
			System.out.println(e);
		} System.out.println(e) System.out.println System.out System System.out e catch (NumberFormatException e) {
			System.out.println("数字で入力して下さい");
		} NumberFormatException e {
			System.out.println("数字で入力して下さい");
		} System.out.println("数字で入力して下さい") System.out.println System.out System System.out "数字で入力して下さい" {
			BufferedReader insBR = new BufferedReader(new InputStreamReader(
					System.in));

			String strNum = insBR.readLine();

			// 数値化
			int intNum = Integer.parseInt(strNum);

			// 2行目読み込む
			String strLine = insBR.readLine();

			// 2行目をばらけさせる
			String[] strAry = strLine.split(" ");

			// intにキャストして配列にいれる
			int[] intAry = new int[intNum];

			for (int i = 0; i < intNum; i++) {
				intAry[i] = Integer.parseInt(strAry[i]);
			}

			// 反転させる
			for (int i = 0; i < intNum / 2; i++) {

				int intChage = 0;
				intChage = intAry[i];
				intAry[i] = intAry[intNum - 1 - i];
				intAry[intNum - 1 - i] = intChage;

			}

			// 出力
			for (int i = 0; i < intNum; i++) {
				if(i ==0) {
					System.out.print(intAry[i]);
				} else {
					System.out.print(" " + intAry[i]);
				}
			}
			System.out.println("");


		} BufferedReader insBR = new BufferedReader(new InputStreamReader(
					System.in)); insBR new BufferedReader(new InputStreamReader(
					System.in)) String strNum = insBR.readLine(); strNum insBR.readLine() insBR.readLine insBR int intNum = Integer.parseInt(strNum); intNum Integer.parseInt(strNum) Integer.parseInt Integer strNum String strLine = insBR.readLine(); strLine insBR.readLine() insBR.readLine insBR String[] strAry = strLine.split(" "); strAry strLine.split(" ") strLine.split strLine " " int[] intAry = new int[intNum]; intAry new int[intNum] intNum for (int i = 0; i < intNum; i++) {
				intAry[i] = Integer.parseInt(strAry[i]);
			} int i = 0; int i = 0; i 0 i < intNum i intNum i++ i++ i {
				intAry[i] = Integer.parseInt(strAry[i]);
			} {
				intAry[i] = Integer.parseInt(strAry[i]);
			} intAry[i] = Integer.parseInt(strAry[i]) intAry[i] intAry i Integer.parseInt(strAry[i]) Integer.parseInt Integer strAry[i] strAry i for (int i = 0; i < intNum / 2; i++) {

				int intChage = 0;
				intChage = intAry[i];
				intAry[i] = intAry[intNum - 1 - i];
				intAry[intNum - 1 - i] = intChage;

			} int i = 0; int i = 0; i 0 i < intNum / 2 i intNum / 2 intNum 2 i++ i++ i {

				int intChage = 0;
				intChage = intAry[i];
				intAry[i] = intAry[intNum - 1 - i];
				intAry[intNum - 1 - i] = intChage;

			} {

				int intChage = 0;
				intChage = intAry[i];
				intAry[i] = intAry[intNum - 1 - i];
				intAry[intNum - 1 - i] = intChage;

			} int intChage = 0; intChage 0 intChage = intAry[i] intChage intAry[i] intAry i intAry[i] = intAry[intNum - 1 - i] intAry[i] intAry i intAry[intNum - 1 - i] intAry intNum - 1 - i intNum - 1 - i intNum 1 i intAry[intNum - 1 - i] = intChage intAry[intNum - 1 - i] intAry intNum - 1 - i intNum - 1 - i intNum 1 i intChage for (int i = 0; i < intNum; i++) {
				if(i ==0) {
					System.out.print(intAry[i]);
				} else {
					System.out.print(" " + intAry[i]);
				}
			} int i = 0; int i = 0; i 0 i < intNum i intNum i++ i++ i {
				if(i ==0) {
					System.out.print(intAry[i]);
				} else {
					System.out.print(" " + intAry[i]);
				}
			} {
				if(i ==0) {
					System.out.print(intAry[i]);
				} else {
					System.out.print(" " + intAry[i]);
				}
			} if(i ==0) {
					System.out.print(intAry[i]);
				} else {
					System.out.print(" " + intAry[i]);
				} i ==0 i 0 {
					System.out.print(intAry[i]);
				} System.out.print(intAry[i]) System.out.print System.out System System.out intAry[i] intAry i {
					System.out.print(" " + intAry[i]);
				} System.out.print(" " + intAry[i]) System.out.print System.out System System.out " " + intAry[i] " " intAry[i] intAry i System.out.println("") System.out.println System.out System System.out "" String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * Lesson6A　与えられた数列を逆順に出力するプログラム
 *
 * @author 前島佑介
 * @version 2014/12/1
 */
class Main {

	/**
	 * プログラムのエントリポイント
	 * @param args
	 */
	public static void main(String[] args) {

		// 1行目読み込む
		try {
			BufferedReader insBR = new BufferedReader(new InputStreamReader(
					System.in));

			String strNum = insBR.readLine();

			// 数値化
			int intNum = Integer.parseInt(strNum);

			// 2行目読み込む
			String strLine = insBR.readLine();

			// 2行目をばらけさせる
			String[] strAry = strLine.split(" ");

			// intにキャストして配列にいれる
			int[] intAry = new int[intNum];

			for (int i = 0; i < intNum; i++) {
				intAry[i] = Integer.parseInt(strAry[i]);
			}

			// 反転させる
			for (int i = 0; i < intNum / 2; i++) {

				int intChage = 0;
				intChage = intAry[i];
				intAry[i] = intAry[intNum - 1 - i];
				intAry[intNum - 1 - i] = intChage;

			}

			// 出力
			for (int i = 0; i < intNum; i++) {
				if(i ==0) {
					System.out.print(intAry[i]);
				} else {
					System.out.print(" " + intAry[i]);
				}
			}
			System.out.println("");


		} catch (IOException e) {
			System.out.println(e);
		} catch (NumberFormatException e) {
			System.out.println("数字で入力して下さい");
		}

	}
}