import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.lang.Math;

public class Main {
    public static void main(String[] args) {
        try {
            BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));
            
            String line;
            int c = 0;
            int count = 0;
            while((line = stdReader.readLine()) != null) {
                if(c == 0) {
                    count = Integer.parseInt(line);
                    c++;
                    continue;
                }
                
                // ?????????????§???????????????§????????????????????\??????
                String[] array = line.split(" ", 0);
                
                // ????????????????????\????????????
                String[] invArray = new String[count];
                int inv = count - 1;
                for(int i = 0; i < count; i++) {
                    invArray[inv - i] = array[i];
                }
                
                // ??\???????????????????????¨?????????
                for(int j = 0; j < count; j++) {
                    System.out.print(invArray[j]);
                    if(j != (count-1)) {
                        System.out.print(" ");
                    }
                }
                System.out.println();
                c = 0;
            }
            stdReader.close();
        } catch(Exception e) {
            e.getStackTrace();
            System.exit(-1);
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.lang.Math; Math java.lang public class Main {
    public static void main(String[] args) {
        try {
            BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));
            
            String line;
            int c = 0;
            int count = 0;
            while((line = stdReader.readLine()) != null) {
                if(c == 0) {
                    count = Integer.parseInt(line);
                    c++;
                    continue;
                }
                
                // ?????????????§???????????????§????????????????????\??????
                String[] array = line.split(" ", 0);
                
                // ????????????????????\????????????
                String[] invArray = new String[count];
                int inv = count - 1;
                for(int i = 0; i < count; i++) {
                    invArray[inv - i] = array[i];
                }
                
                // ??\???????????????????????¨?????????
                for(int j = 0; j < count; j++) {
                    System.out.print(invArray[j]);
                    if(j != (count-1)) {
                        System.out.print(" ");
                    }
                }
                System.out.println();
                c = 0;
            }
            stdReader.close();
        } catch(Exception e) {
            e.getStackTrace();
            System.exit(-1);
        }
    }
} Main public static void main(String[] args) {
        try {
            BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));
            
            String line;
            int c = 0;
            int count = 0;
            while((line = stdReader.readLine()) != null) {
                if(c == 0) {
                    count = Integer.parseInt(line);
                    c++;
                    continue;
                }
                
                // ?????????????§???????????????§????????????????????\??????
                String[] array = line.split(" ", 0);
                
                // ????????????????????\????????????
                String[] invArray = new String[count];
                int inv = count - 1;
                for(int i = 0; i < count; i++) {
                    invArray[inv - i] = array[i];
                }
                
                // ??\???????????????????????¨?????????
                for(int j = 0; j < count; j++) {
                    System.out.print(invArray[j]);
                    if(j != (count-1)) {
                        System.out.print(" ");
                    }
                }
                System.out.println();
                c = 0;
            }
            stdReader.close();
        } catch(Exception e) {
            e.getStackTrace();
            System.exit(-1);
        }
    } main {
        try {
            BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));
            
            String line;
            int c = 0;
            int count = 0;
            while((line = stdReader.readLine()) != null) {
                if(c == 0) {
                    count = Integer.parseInt(line);
                    c++;
                    continue;
                }
                
                // ?????????????§???????????????§????????????????????\??????
                String[] array = line.split(" ", 0);
                
                // ????????????????????\????????????
                String[] invArray = new String[count];
                int inv = count - 1;
                for(int i = 0; i < count; i++) {
                    invArray[inv - i] = array[i];
                }
                
                // ??\???????????????????????¨?????????
                for(int j = 0; j < count; j++) {
                    System.out.print(invArray[j]);
                    if(j != (count-1)) {
                        System.out.print(" ");
                    }
                }
                System.out.println();
                c = 0;
            }
            stdReader.close();
        } catch(Exception e) {
            e.getStackTrace();
            System.exit(-1);
        }
    } try {
            BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));
            
            String line;
            int c = 0;
            int count = 0;
            while((line = stdReader.readLine()) != null) {
                if(c == 0) {
                    count = Integer.parseInt(line);
                    c++;
                    continue;
                }
                
                // ?????????????§???????????????§????????????????????\??????
                String[] array = line.split(" ", 0);
                
                // ????????????????????\????????????
                String[] invArray = new String[count];
                int inv = count - 1;
                for(int i = 0; i < count; i++) {
                    invArray[inv - i] = array[i];
                }
                
                // ??\???????????????????????¨?????????
                for(int j = 0; j < count; j++) {
                    System.out.print(invArray[j]);
                    if(j != (count-1)) {
                        System.out.print(" ");
                    }
                }
                System.out.println();
                c = 0;
            }
            stdReader.close();
        } catch(Exception e) {
            e.getStackTrace();
            System.exit(-1);
        } catch(Exception e) {
            e.getStackTrace();
            System.exit(-1);
        } Exception e {
            e.getStackTrace();
            System.exit(-1);
        } e.getStackTrace() e.getStackTrace e System.exit(-1) System.exit System -1 1 {
            BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));
            
            String line;
            int c = 0;
            int count = 0;
            while((line = stdReader.readLine()) != null) {
                if(c == 0) {
                    count = Integer.parseInt(line);
                    c++;
                    continue;
                }
                
                // ?????????????§???????????????§????????????????????\??????
                String[] array = line.split(" ", 0);
                
                // ????????????????????\????????????
                String[] invArray = new String[count];
                int inv = count - 1;
                for(int i = 0; i < count; i++) {
                    invArray[inv - i] = array[i];
                }
                
                // ??\???????????????????????¨?????????
                for(int j = 0; j < count; j++) {
                    System.out.print(invArray[j]);
                    if(j != (count-1)) {
                        System.out.print(" ");
                    }
                }
                System.out.println();
                c = 0;
            }
            stdReader.close();
        } BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in)); stdReader new BufferedReader(new InputStreamReader(System.in)) String line; line int c = 0; c 0 int count = 0; count 0 while((line = stdReader.readLine()) != null) {
                if(c == 0) {
                    count = Integer.parseInt(line);
                    c++;
                    continue;
                }
                
                // ?????????????§???????????????§????????????????????\??????
                String[] array = line.split(" ", 0);
                
                // ????????????????????\????????????
                String[] invArray = new String[count];
                int inv = count - 1;
                for(int i = 0; i < count; i++) {
                    invArray[inv - i] = array[i];
                }
                
                // ??\???????????????????????¨?????????
                for(int j = 0; j < count; j++) {
                    System.out.print(invArray[j]);
                    if(j != (count-1)) {
                        System.out.print(" ");
                    }
                }
                System.out.println();
                c = 0;
            } (line = stdReader.readLine()) != null (line = stdReader.readLine()) line stdReader.readLine() stdReader.readLine stdReader null {
                if(c == 0) {
                    count = Integer.parseInt(line);
                    c++;
                    continue;
                }
                
                // ?????????????§???????????????§????????????????????\??????
                String[] array = line.split(" ", 0);
                
                // ????????????????????\????????????
                String[] invArray = new String[count];
                int inv = count - 1;
                for(int i = 0; i < count; i++) {
                    invArray[inv - i] = array[i];
                }
                
                // ??\???????????????????????¨?????????
                for(int j = 0; j < count; j++) {
                    System.out.print(invArray[j]);
                    if(j != (count-1)) {
                        System.out.print(" ");
                    }
                }
                System.out.println();
                c = 0;
            } if(c == 0) {
                    count = Integer.parseInt(line);
                    c++;
                    continue;
                } c == 0 c 0 {
                    count = Integer.parseInt(line);
                    c++;
                    continue;
                } count = Integer.parseInt(line) count Integer.parseInt(line) Integer.parseInt Integer line c++ c continue; String[] array = line.split(" ", 0); array line.split(" ", 0) line.split line " " 0 String[] invArray = new String[count]; invArray new String[count] count int inv = count - 1; inv count - 1 count 1 for(int i = 0; i < count; i++) {
                    invArray[inv - i] = array[i];
                } int i = 0; int i = 0; i 0 i < count i count i++ i++ i {
                    invArray[inv - i] = array[i];
                } {
                    invArray[inv - i] = array[i];
                } invArray[inv - i] = array[i] invArray[inv - i] invArray inv - i inv i array[i] array i for(int j = 0; j < count; j++) {
                    System.out.print(invArray[j]);
                    if(j != (count-1)) {
                        System.out.print(" ");
                    }
                } int j = 0; int j = 0; j 0 j < count j count j++ j++ j {
                    System.out.print(invArray[j]);
                    if(j != (count-1)) {
                        System.out.print(" ");
                    }
                } {
                    System.out.print(invArray[j]);
                    if(j != (count-1)) {
                        System.out.print(" ");
                    }
                } System.out.print(invArray[j]) System.out.print System.out System System.out invArray[j] invArray j if(j != (count-1)) {
                        System.out.print(" ");
                    } j != (count-1) j (count-1) count 1 {
                        System.out.print(" ");
                    } System.out.print(" ") System.out.print System.out System System.out " " System.out.println() System.out.println System.out System System.out c = 0 c 0 stdReader.close() stdReader.close stdReader String[] args args public class Main {
    public static void main(String[] args) {
        try {
            BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));
            
            String line;
            int c = 0;
            int count = 0;
            while((line = stdReader.readLine()) != null) {
                if(c == 0) {
                    count = Integer.parseInt(line);
                    c++;
                    continue;
                }
                
                // ?????????????§???????????????§????????????????????\??????
                String[] array = line.split(" ", 0);
                
                // ????????????????????\????????????
                String[] invArray = new String[count];
                int inv = count - 1;
                for(int i = 0; i < count; i++) {
                    invArray[inv - i] = array[i];
                }
                
                // ??\???????????????????????¨?????????
                for(int j = 0; j < count; j++) {
                    System.out.print(invArray[j]);
                    if(j != (count-1)) {
                        System.out.print(" ");
                    }
                }
                System.out.println();
                c = 0;
            }
            stdReader.close();
        } catch(Exception e) {
            e.getStackTrace();
            System.exit(-1);
        }
    }
} public class Main {
    public static void main(String[] args) {
        try {
            BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));
            
            String line;
            int c = 0;
            int count = 0;
            while((line = stdReader.readLine()) != null) {
                if(c == 0) {
                    count = Integer.parseInt(line);
                    c++;
                    continue;
                }
                
                // ?????????????§???????????????§????????????????????\??????
                String[] array = line.split(" ", 0);
                
                // ????????????????????\????????????
                String[] invArray = new String[count];
                int inv = count - 1;
                for(int i = 0; i < count; i++) {
                    invArray[inv - i] = array[i];
                }
                
                // ??\???????????????????????¨?????????
                for(int j = 0; j < count; j++) {
                    System.out.print(invArray[j]);
                    if(j != (count-1)) {
                        System.out.print(" ");
                    }
                }
                System.out.println();
                c = 0;
            }
            stdReader.close();
        } catch(Exception e) {
            e.getStackTrace();
            System.exit(-1);
        }
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.lang.Math;

public class Main {
    public static void main(String[] args) {
        try {
            BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));
            
            String line;
            int c = 0;
            int count = 0;
            while((line = stdReader.readLine()) != null) {
                if(c == 0) {
                    count = Integer.parseInt(line);
                    c++;
                    continue;
                }
                
                // ?????????????§???????????????§????????????????????\??????
                String[] array = line.split(" ", 0);
                
                // ????????????????????\????????????
                String[] invArray = new String[count];
                int inv = count - 1;
                for(int i = 0; i < count; i++) {
                    invArray[inv - i] = array[i];
                }
                
                // ??\???????????????????????¨?????????
                for(int j = 0; j < count; j++) {
                    System.out.print(invArray[j]);
                    if(j != (count-1)) {
                        System.out.print(" ");
                    }
                }
                System.out.println();
                c = 0;
            }
            stdReader.close();
        } catch(Exception e) {
            e.getStackTrace();
            System.exit(-1);
        }
    }
}