class InputReader{
    private BufferedReader reader;
    private StringTokenizer tokenizer;
    private InputStream inputStream;

    InputReader(InputStream stream) {
        reader = new BufferedReader(new InputStreamReader(stream), 1 << 20);
        tokenizer = null;
        inputStream = stream;
    }

    private String nextToken() {
        while (tokenizer == null || !tokenizer.hasMoreTokens()){
            try {
                tokenizer = new StringTokenizer(reader.readLine());
            }
            catch (IOException e){
                throw new RuntimeException(e);
            }
        }

        return  tokenizer.nextToken();
    }

    int nextInt() {
        return Integer.parseInt(nextToken());
    }

    String nextString(){
        return nextToken();
    }

    void close() throws IOException {
        inputStream.close();
    }
}

@@ -10,16 +10,41 @@
 utReader
+ implements AutoCloseable
 %7B%0A    pr
@@ -682,16 +682,23 @@
  %7D%0A%0A    
+public 
 int next
@@ -701,24 +701,24 @@
 nextInt() %7B%0A
-
         retu
@@ -762,16 +762,23 @@
  %7D%0A%0A    
+public 
 String n
@@ -825,20 +825,27 @@
 %0A    %7D%0A%0A
-
     
+public 
 void clo

Update InputReader.java