You are on page 1of 2

import java.io.

BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class A_Code {


public static void main(String[] args) throws IOException {
BufferedScanner input = new BufferedScanner();
BufferedOutput output = new BufferedOutput();

output.println();
output.flush();
}

private static class BufferedScanner {


private final BufferedReader reader;
private StringTokenizer tokenizer;

public BufferedScanner() {
reader = new BufferedReader(new InputStreamReader(System.in));
}

public int nextInt() throws IOException {


return Integer.parseInt(nextToken());
}

public long nextLong() throws IOException {


return Long.parseLong(nextToken());
}

public String nextLine() throws IOException {


tokenizer = null;
return reader.readLine();
}

public int[] nextIntArray(int length) throws IOException {


int[] numbers = new int[length];
for (int i = 0; i < length; i++) {
numbers[i] = nextInt();
}

return numbers;
}

public long[] nextLongArray(int length) throws IOException {


long[] numbers = new long[length];
for (int i = 0; i < length; i++) {
numbers[i] = nextLong();
}

return numbers;
}

private String nextToken() throws IOException {


while (tokenizer == null || !tokenizer.hasMoreTokens()) {
tokenizer = new StringTokenizer(reader.readLine());
}

return tokenizer.nextToken();
}
}

private static class BufferedOutput {


private final StringBuilder result;

public BufferedOutput() {
result = new StringBuilder();
}

public void print(Object object) {


result.append(object);
}

public void println(Object object) {


result.append(object).append("\n");
}

public void flush() {


System.out.println(result);
System.out.flush();
}
}
}

You might also like