import java.io.*;

public class sample {
  
  public static void main(String args[]) throws IOException {

    String buffer;
    int foo;

    System.out.println("Execution begins...");

    BufferedReader d = 
	new BufferedReader(new InputStreamReader(System.in));

    // Read in some integers, one per line.
    try {
      buffer = d.readLine();
    } catch (IOException e) {
      System.out.println("Can't read any input.");
      return;
    }

    try {
      foo = Integer.parseInt(buffer);
    } catch (NumberFormatException e) {
      System.out.println("Invalid integer.");
      return;
    } 
    System.out.println("Number read was " + foo);

    System.out.println("Execution ends.");
  }
}

