class InputReader{
    private BufferedReader reader;
    private StringTokenizer tokenizer;
    
    InputReader(InputStream stream) {
        reader = new BufferedReader(new InputStreamReader(stream), 65536);
        tokenizer = null;
    }
    
    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();
    }
}

@@ -86,24 +86,57 @@
 enizer;%0A    
+private InputStream inputStream;%0A
 %0A    InputRe
@@ -233,13 +233,15 @@
 m), 
-65536
+1 %3C%3C 20
 );%0A 
@@ -265,26 +265,52 @@
 = null;%0A
+        inputStream = stream;%0A
     %7D%0A
-    
 %0A    pri
@@ -602,28 +602,24 @@
 %7D%0A        %7D%0A
-    
 %0A        ret
@@ -648,28 +648,24 @@
 en();%0A    %7D%0A
-    
 %0A    int nex
@@ -725,20 +725,16 @@
 ;%0A    %7D%0A
-    
 %0A    Str
@@ -784,11 +784,85 @@
 );%0A    %7D
+%0A%0A    void close() throws IOException %7B%0A        inputStream.close();%0A    %7D
 %0A%7D%0A

Update InputReader.java