import java.io.*; import java.util.StringTokenizer; public class ArrayIO { public static void init_array(BufferedReader infile, int[] X, int a, int b) throws IOException {int i; for (i = a; i <= b; i = i + 1) {X[i] = read_int(infile);} } public static void output_array(java.io.PrintWriter outfile, int[] X, int a, int b) throws IOException {int i; for (i = a; i <= b; i = i + 1) {outfile.println(X[i]);} } public static int read_int(BufferedReader infile) throws IOException {String s = infile.readLine(); StringTokenizer st = new StringTokenizer(s); int i = new Integer(st.nextToken()).intValue(); return i; } }