/* ID: jaagup1 LANG: JAVA TASK: test */ import java.io.*; import java.util.*; class test { public static void main (String [] args) throws IOException { // Use BufferedReader rather than RandomAccessFile; it's much faster BufferedReader f = new BufferedReader(new FileReader("test.in")); // input file name goes above PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter("test.out"))); // Use StringTokenizer vs. readLine/split -- lots faster StringTokenizer st = new StringTokenizer(f.readLine()); // Get line, break into tokens int i1 = Integer.parseInt(st.nextToken()); // first integer int i2 = Integer.parseInt(st.nextToken()); // second integer System.out.println("proov"); out.println(i1-i2); // output result out.close(); // close the output file System.exit(0); // don't omit this! } }