import java.util.Scanner;

public class Main{
	 
    public static void main(String[] args) {
        Scanner stdin  = new Scanner(System.in);
        
        int num = Integer.parseInt(stdin.nextLine());
        
        boolean boo = true;
        int[] seq = new int[num];
        if(num <= 100) {
         
        	for(int i = 0;i < num;i++) {
        		seq[i] = stdin.nextInt();
        		if(seq[i] >= 0 && seq[i] <= 1000) {
        			continue;
        		}else {
        			boo = false;
                break;
        		}
        	}
        }
         
        if(boo == true) {
            for(int j = num ;j > 0;j--) {
                if(j != 1) {
                    System.out.print(seq[j - 1]+" ");
                }else {
                    System.out.println(seq[j - 1]);
                }
            }
        }
       stdin.close();  
   }
	 
} import java.util.Scanner; Scanner java.util public class Main{
	 
    public static void main(String[] args) {
        Scanner stdin  = new Scanner(System.in);
        
        int num = Integer.parseInt(stdin.nextLine());
        
        boolean boo = true;
        int[] seq = new int[num];
        if(num <= 100) {
         
        	for(int i = 0;i < num;i++) {
        		seq[i] = stdin.nextInt();
        		if(seq[i] >= 0 && seq[i] <= 1000) {
        			continue;
        		}else {
        			boo = false;
                break;
        		}
        	}
        }
         
        if(boo == true) {
            for(int j = num ;j > 0;j--) {
                if(j != 1) {
                    System.out.print(seq[j - 1]+" ");
                }else {
                    System.out.println(seq[j - 1]);
                }
            }
        }
       stdin.close();  
   }
	 
} Main public static void main(String[] args) {
        Scanner stdin  = new Scanner(System.in);
        
        int num = Integer.parseInt(stdin.nextLine());
        
        boolean boo = true;
        int[] seq = new int[num];
        if(num <= 100) {
         
        	for(int i = 0;i < num;i++) {
        		seq[i] = stdin.nextInt();
        		if(seq[i] >= 0 && seq[i] <= 1000) {
        			continue;
        		}else {
        			boo = false;
                break;
        		}
        	}
        }
         
        if(boo == true) {
            for(int j = num ;j > 0;j--) {
                if(j != 1) {
                    System.out.print(seq[j - 1]+" ");
                }else {
                    System.out.println(seq[j - 1]);
                }
            }
        }
       stdin.close();  
   } main {
        Scanner stdin  = new Scanner(System.in);
        
        int num = Integer.parseInt(stdin.nextLine());
        
        boolean boo = true;
        int[] seq = new int[num];
        if(num <= 100) {
         
        	for(int i = 0;i < num;i++) {
        		seq[i] = stdin.nextInt();
        		if(seq[i] >= 0 && seq[i] <= 1000) {
        			continue;
        		}else {
        			boo = false;
                break;
        		}
        	}
        }
         
        if(boo == true) {
            for(int j = num ;j > 0;j--) {
                if(j != 1) {
                    System.out.print(seq[j - 1]+" ");
                }else {
                    System.out.println(seq[j - 1]);
                }
            }
        }
       stdin.close();  
   } Scanner stdin  = new Scanner(System.in); stdin new Scanner(System.in) int num = Integer.parseInt(stdin.nextLine()); num Integer.parseInt(stdin.nextLine()) Integer.parseInt Integer stdin.nextLine() stdin.nextLine stdin boolean boo = true; boo true int[] seq = new int[num]; seq new int[num] num if(num <= 100) {
         
        	for(int i = 0;i < num;i++) {
        		seq[i] = stdin.nextInt();
        		if(seq[i] >= 0 && seq[i] <= 1000) {
        			continue;
        		}else {
        			boo = false;
                break;
        		}
        	}
        } num <= 100 num 100 {
         
        	for(int i = 0;i < num;i++) {
        		seq[i] = stdin.nextInt();
        		if(seq[i] >= 0 && seq[i] <= 1000) {
        			continue;
        		}else {
        			boo = false;
                break;
        		}
        	}
        } for(int i = 0;i < num;i++) {
        		seq[i] = stdin.nextInt();
        		if(seq[i] >= 0 && seq[i] <= 1000) {
        			continue;
        		}else {
        			boo = false;
                break;
        		}
        	} int i = 0; int i = 0; i 0 i < num i num i++ i++ i {
        		seq[i] = stdin.nextInt();
        		if(seq[i] >= 0 && seq[i] <= 1000) {
        			continue;
        		}else {
        			boo = false;
                break;
        		}
        	} {
        		seq[i] = stdin.nextInt();
        		if(seq[i] >= 0 && seq[i] <= 1000) {
        			continue;
        		}else {
        			boo = false;
                break;
        		}
        	} seq[i] = stdin.nextInt() seq[i] seq i stdin.nextInt() stdin.nextInt stdin if(seq[i] >= 0 && seq[i] <= 1000) {
        			continue;
        		}else {
        			boo = false;
                break;
        		} seq[i] >= 0 && seq[i] <= 1000 seq[i] >= 0 seq[i] seq i 0 seq[i] <= 1000 seq[i] seq i 1000 {
        			continue;
        		} continue; {
        			boo = false;
                break;
        		} boo = false boo false break; if(boo == true) {
            for(int j = num ;j > 0;j--) {
                if(j != 1) {
                    System.out.print(seq[j - 1]+" ");
                }else {
                    System.out.println(seq[j - 1]);
                }
            }
        } boo == true boo true {
            for(int j = num ;j > 0;j--) {
                if(j != 1) {
                    System.out.print(seq[j - 1]+" ");
                }else {
                    System.out.println(seq[j - 1]);
                }
            }
        } for(int j = num ;j > 0;j--) {
                if(j != 1) {
                    System.out.print(seq[j - 1]+" ");
                }else {
                    System.out.println(seq[j - 1]);
                }
            } int j = num ; int j = num ; j num j > 0 j 0 j-- j-- j {
                if(j != 1) {
                    System.out.print(seq[j - 1]+" ");
                }else {
                    System.out.println(seq[j - 1]);
                }
            } {
                if(j != 1) {
                    System.out.print(seq[j - 1]+" ");
                }else {
                    System.out.println(seq[j - 1]);
                }
            } if(j != 1) {
                    System.out.print(seq[j - 1]+" ");
                }else {
                    System.out.println(seq[j - 1]);
                } j != 1 j 1 {
                    System.out.print(seq[j - 1]+" ");
                } System.out.print(seq[j - 1]+" ") System.out.print System.out System System.out seq[j - 1]+" " seq[j - 1] seq j - 1 j 1 " " {
                    System.out.println(seq[j - 1]);
                } System.out.println(seq[j - 1]) System.out.println System.out System System.out seq[j - 1] seq j - 1 j 1 stdin.close() stdin.close stdin String[] args args public class Main{
	 
    public static void main(String[] args) {
        Scanner stdin  = new Scanner(System.in);
        
        int num = Integer.parseInt(stdin.nextLine());
        
        boolean boo = true;
        int[] seq = new int[num];
        if(num <= 100) {
         
        	for(int i = 0;i < num;i++) {
        		seq[i] = stdin.nextInt();
        		if(seq[i] >= 0 && seq[i] <= 1000) {
        			continue;
        		}else {
        			boo = false;
                break;
        		}
        	}
        }
         
        if(boo == true) {
            for(int j = num ;j > 0;j--) {
                if(j != 1) {
                    System.out.print(seq[j - 1]+" ");
                }else {
                    System.out.println(seq[j - 1]);
                }
            }
        }
       stdin.close();  
   }
	 
} public class Main{
	 
    public static void main(String[] args) {
        Scanner stdin  = new Scanner(System.in);
        
        int num = Integer.parseInt(stdin.nextLine());
        
        boolean boo = true;
        int[] seq = new int[num];
        if(num <= 100) {
         
        	for(int i = 0;i < num;i++) {
        		seq[i] = stdin.nextInt();
        		if(seq[i] >= 0 && seq[i] <= 1000) {
        			continue;
        		}else {
        			boo = false;
                break;
        		}
        	}
        }
         
        if(boo == true) {
            for(int j = num ;j > 0;j--) {
                if(j != 1) {
                    System.out.print(seq[j - 1]+" ");
                }else {
                    System.out.println(seq[j - 1]);
                }
            }
        }
       stdin.close();  
   }
	 
} Main
import java.util.Scanner;

public class Main{
	 
    public static void main(String[] args) {
        Scanner stdin  = new Scanner(System.in);
        
        int num = Integer.parseInt(stdin.nextLine());
        
        boolean boo = true;
        int[] seq = new int[num];
        if(num <= 100) {
         
        	for(int i = 0;i < num;i++) {
        		seq[i] = stdin.nextInt();
        		if(seq[i] >= 0 && seq[i] <= 1000) {
        			continue;
        		}else {
        			boo = false;
                break;
        		}
        	}
        }
         
        if(boo == true) {
            for(int j = num ;j > 0;j--) {
                if(j != 1) {
                    System.out.print(seq[j - 1]+" ");
                }else {
                    System.out.println(seq[j - 1]);
                }
            }
        }
       stdin.close();  
   }
	 
}