/* add numbers
*
* The program assumes the user enters something like "5 + 7" with an 
* arbitrary number of spaces between the numbers and the plus sign.
*/

import java.io.*;

class Calc {
    public static void main (String[] args) throws IOException {
		InputStreamReader reader = new InputStreamReader(System.in) ;
		BufferedReader buffer = new BufferedReader(reader);
		
		while (true) {
			System.out.println("Add something:");
			String line = buffer.readLine();
			int plus = line.indexOf("+");
			String first = line.substring(0, plus).trim();
			String second = line.substring(plus+1).trim();
			int x = Integer.parseInt(first);
			int y = Integer.parseInt(second);
			System.out.println(x+y);
		}
    }
}
