/* ID: your_id_here LANG: JAVA TASK: test */ import java.io.*; import java.util.*; class test { public static void main (String [] args) throws IOException { RandomAccessFile f = new RandomAccessFile ("test.in", "r"); // input file name goes above PrintWriter out = new PrintWriter( new BufferedWriter( new FileWriter("test.out"))); // output file name String s = f.readLine(); // gets entire line StringTokenizer st = new StringTokenizer(s); // breaks line into pieces int i1 = Integer.parseInt(st.nextToken()); // first piece becomes an integer int i2 = Integer.parseInt(st.nextToken()); // second piece becomes an integer out.println(i1+i2); // output result out.close(); // close the output file System.exit(0); // don't omit this! } }