import java.io.*;
import javax.swing.*;
public class ReverseSomeInts {
  
  public static void main(String[] args) throws IOException {
    BufferedReader br=
      new BufferedReader(new InputStreamReader(System.in));
    int[] A;
    int aSize=
      Integer.parseInt(JOptionPane.showInputDialog("How many ints?"));
    A= new int[aSize];
    System.out.println("Type some ints: ");
    for (int i= 0; i != A.length; i++) {
      A[i]= Integer.parseInt(br.readLine());
    }
    System.out.println("Here are your values reversed:");
    for (int i= A.length-1; i != -1; i--) {
      System.out.println(A[i]);
    }
    System.out.println("Number of args: " + args.length);
    for (int i= 0; i != args.length; i++) {
      System.out.println(args[i]);
    }
    System.exit(0);
  }
  
}