void main( ) throws Exception {                             // en caso de no poder abrir el archivo que intentaremos abrir
   var arch = new FileInputStream("entrada.txt");
   try {
      var sc = new Scanner(arch);
      int n = sc.nextInt( );
      System.out.println(n);
   } finally {                      // cerrar el archivo independientemente de si el bloque termina de forma normal o por excepción (Java no tiene destructores)
      arch.close( );
   }
}
