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

class Main {
	public static void main(String[] args) throws IOException{
		
		BufferedReader br =
				new BufferedReader(new InputStreamReader(System.in));
		
		String op;
		String[] ArrayX = new String[3];
		int[] ArrayA = new int[2];
		int resultNum = 0;
		String resultLine = "";

        boolean check = true;
        while(check){
            String line = br.readLine();
            ArrayX = line.split(" ");
            op = ArrayX[1];
            ArrayA[0] = Integer.parseInt(ArrayX[0]);
            ArrayA[1] = Integer.parseInt(ArrayX[2]);
            
            if(op.equals("+")) {
            	resultNum = ArrayA[0] + ArrayA[1];
            	resultLine = resultLine + resultNum + ("\n");
            }
            else if(op.equals("-")) {
            	resultNum = ArrayA[0] - ArrayA[1];
            	resultLine = resultLine + resultNum+ ("\n");
            }
            else if(op.equals("*")) {
            	resultNum = ArrayA[0] * ArrayA[1];
            	resultLine = resultLine + resultNum+ ("\n");
            }
            else if(op.equals("/")) {
            	resultNum = (ArrayA[0] / ArrayA[1]);
            	resultLine = resultLine + resultNum+ ("\n");
            }
            
            else if(op.equals("?") ){
            	check = false;
            }
        }
        System.out.print(resultLine);
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io class Main {
	public static void main(String[] args) throws IOException{
		
		BufferedReader br =
				new BufferedReader(new InputStreamReader(System.in));
		
		String op;
		String[] ArrayX = new String[3];
		int[] ArrayA = new int[2];
		int resultNum = 0;
		String resultLine = "";

        boolean check = true;
        while(check){
            String line = br.readLine();
            ArrayX = line.split(" ");
            op = ArrayX[1];
            ArrayA[0] = Integer.parseInt(ArrayX[0]);
            ArrayA[1] = Integer.parseInt(ArrayX[2]);
            
            if(op.equals("+")) {
            	resultNum = ArrayA[0] + ArrayA[1];
            	resultLine = resultLine + resultNum + ("\n");
            }
            else if(op.equals("-")) {
            	resultNum = ArrayA[0] - ArrayA[1];
            	resultLine = resultLine + resultNum+ ("\n");
            }
            else if(op.equals("*")) {
            	resultNum = ArrayA[0] * ArrayA[1];
            	resultLine = resultLine + resultNum+ ("\n");
            }
            else if(op.equals("/")) {
            	resultNum = (ArrayA[0] / ArrayA[1]);
            	resultLine = resultLine + resultNum+ ("\n");
            }
            
            else if(op.equals("?") ){
            	check = false;
            }
        }
        System.out.print(resultLine);
	}
} Main public static void main(String[] args) throws IOException{
		
		BufferedReader br =
				new BufferedReader(new InputStreamReader(System.in));
		
		String op;
		String[] ArrayX = new String[3];
		int[] ArrayA = new int[2];
		int resultNum = 0;
		String resultLine = "";

        boolean check = true;
        while(check){
            String line = br.readLine();
            ArrayX = line.split(" ");
            op = ArrayX[1];
            ArrayA[0] = Integer.parseInt(ArrayX[0]);
            ArrayA[1] = Integer.parseInt(ArrayX[2]);
            
            if(op.equals("+")) {
            	resultNum = ArrayA[0] + ArrayA[1];
            	resultLine = resultLine + resultNum + ("\n");
            }
            else if(op.equals("-")) {
            	resultNum = ArrayA[0] - ArrayA[1];
            	resultLine = resultLine + resultNum+ ("\n");
            }
            else if(op.equals("*")) {
            	resultNum = ArrayA[0] * ArrayA[1];
            	resultLine = resultLine + resultNum+ ("\n");
            }
            else if(op.equals("/")) {
            	resultNum = (ArrayA[0] / ArrayA[1]);
            	resultLine = resultLine + resultNum+ ("\n");
            }
            
            else if(op.equals("?") ){
            	check = false;
            }
        }
        System.out.print(resultLine);
	} main {
		
		BufferedReader br =
				new BufferedReader(new InputStreamReader(System.in));
		
		String op;
		String[] ArrayX = new String[3];
		int[] ArrayA = new int[2];
		int resultNum = 0;
		String resultLine = "";

        boolean check = true;
        while(check){
            String line = br.readLine();
            ArrayX = line.split(" ");
            op = ArrayX[1];
            ArrayA[0] = Integer.parseInt(ArrayX[0]);
            ArrayA[1] = Integer.parseInt(ArrayX[2]);
            
            if(op.equals("+")) {
            	resultNum = ArrayA[0] + ArrayA[1];
            	resultLine = resultLine + resultNum + ("\n");
            }
            else if(op.equals("-")) {
            	resultNum = ArrayA[0] - ArrayA[1];
            	resultLine = resultLine + resultNum+ ("\n");
            }
            else if(op.equals("*")) {
            	resultNum = ArrayA[0] * ArrayA[1];
            	resultLine = resultLine + resultNum+ ("\n");
            }
            else if(op.equals("/")) {
            	resultNum = (ArrayA[0] / ArrayA[1]);
            	resultLine = resultLine + resultNum+ ("\n");
            }
            
            else if(op.equals("?") ){
            	check = false;
            }
        }
        System.out.print(resultLine);
	} BufferedReader br =
				new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String op; op String[] ArrayX = new String[3]; ArrayX new String[3] 3 int[] ArrayA = new int[2]; ArrayA new int[2] 2 int resultNum = 0; resultNum 0 String resultLine = ""; resultLine "" boolean check = true; check true while(check){
            String line = br.readLine();
            ArrayX = line.split(" ");
            op = ArrayX[1];
            ArrayA[0] = Integer.parseInt(ArrayX[0]);
            ArrayA[1] = Integer.parseInt(ArrayX[2]);
            
            if(op.equals("+")) {
            	resultNum = ArrayA[0] + ArrayA[1];
            	resultLine = resultLine + resultNum + ("\n");
            }
            else if(op.equals("-")) {
            	resultNum = ArrayA[0] - ArrayA[1];
            	resultLine = resultLine + resultNum+ ("\n");
            }
            else if(op.equals("*")) {
            	resultNum = ArrayA[0] * ArrayA[1];
            	resultLine = resultLine + resultNum+ ("\n");
            }
            else if(op.equals("/")) {
            	resultNum = (ArrayA[0] / ArrayA[1]);
            	resultLine = resultLine + resultNum+ ("\n");
            }
            
            else if(op.equals("?") ){
            	check = false;
            }
        } check {
            String line = br.readLine();
            ArrayX = line.split(" ");
            op = ArrayX[1];
            ArrayA[0] = Integer.parseInt(ArrayX[0]);
            ArrayA[1] = Integer.parseInt(ArrayX[2]);
            
            if(op.equals("+")) {
            	resultNum = ArrayA[0] + ArrayA[1];
            	resultLine = resultLine + resultNum + ("\n");
            }
            else if(op.equals("-")) {
            	resultNum = ArrayA[0] - ArrayA[1];
            	resultLine = resultLine + resultNum+ ("\n");
            }
            else if(op.equals("*")) {
            	resultNum = ArrayA[0] * ArrayA[1];
            	resultLine = resultLine + resultNum+ ("\n");
            }
            else if(op.equals("/")) {
            	resultNum = (ArrayA[0] / ArrayA[1]);
            	resultLine = resultLine + resultNum+ ("\n");
            }
            
            else if(op.equals("?") ){
            	check = false;
            }
        } String line = br.readLine(); line br.readLine() br.readLine br ArrayX = line.split(" ") ArrayX line.split(" ") line.split line " " op = ArrayX[1] op ArrayX[1] ArrayX 1 ArrayA[0] = Integer.parseInt(ArrayX[0]) ArrayA[0] ArrayA 0 Integer.parseInt(ArrayX[0]) Integer.parseInt Integer ArrayX[0] ArrayX 0 ArrayA[1] = Integer.parseInt(ArrayX[2]) ArrayA[1] ArrayA 1 Integer.parseInt(ArrayX[2]) Integer.parseInt Integer ArrayX[2] ArrayX 2 if(op.equals("+")) {
            	resultNum = ArrayA[0] + ArrayA[1];
            	resultLine = resultLine + resultNum + ("\n");
            }
            else if(op.equals("-")) {
            	resultNum = ArrayA[0] - ArrayA[1];
            	resultLine = resultLine + resultNum+ ("\n");
            }
            else if(op.equals("*")) {
            	resultNum = ArrayA[0] * ArrayA[1];
            	resultLine = resultLine + resultNum+ ("\n");
            }
            else if(op.equals("/")) {
            	resultNum = (ArrayA[0] / ArrayA[1]);
            	resultLine = resultLine + resultNum+ ("\n");
            }
            
            else if(op.equals("?") ){
            	check = false;
            } op.equals("+") op.equals op "+" {
            	resultNum = ArrayA[0] + ArrayA[1];
            	resultLine = resultLine + resultNum + ("\n");
            } resultNum = ArrayA[0] + ArrayA[1] resultNum ArrayA[0] + ArrayA[1] ArrayA[0] ArrayA 0 ArrayA[1] ArrayA 1 resultLine = resultLine + resultNum + ("\n") resultLine resultLine + resultNum + ("\n") resultLine + resultNum + ("\n") resultLine resultNum ("\n") if(op.equals("-")) {
            	resultNum = ArrayA[0] - ArrayA[1];
            	resultLine = resultLine + resultNum+ ("\n");
            }
            else if(op.equals("*")) {
            	resultNum = ArrayA[0] * ArrayA[1];
            	resultLine = resultLine + resultNum+ ("\n");
            }
            else if(op.equals("/")) {
            	resultNum = (ArrayA[0] / ArrayA[1]);
            	resultLine = resultLine + resultNum+ ("\n");
            }
            
            else if(op.equals("?") ){
            	check = false;
            } op.equals("-") op.equals op "-" {
            	resultNum = ArrayA[0] - ArrayA[1];
            	resultLine = resultLine + resultNum+ ("\n");
            } resultNum = ArrayA[0] - ArrayA[1] resultNum ArrayA[0] - ArrayA[1] ArrayA[0] ArrayA 0 ArrayA[1] ArrayA 1 resultLine = resultLine + resultNum+ ("\n") resultLine resultLine + resultNum+ ("\n") resultLine + resultNum+ ("\n") resultLine resultNum ("\n") if(op.equals("*")) {
            	resultNum = ArrayA[0] * ArrayA[1];
            	resultLine = resultLine + resultNum+ ("\n");
            }
            else if(op.equals("/")) {
            	resultNum = (ArrayA[0] / ArrayA[1]);
            	resultLine = resultLine + resultNum+ ("\n");
            }
            
            else if(op.equals("?") ){
            	check = false;
            } op.equals("*") op.equals op "*" {
            	resultNum = ArrayA[0] * ArrayA[1];
            	resultLine = resultLine + resultNum+ ("\n");
            } resultNum = ArrayA[0] * ArrayA[1] resultNum ArrayA[0] * ArrayA[1] ArrayA[0] ArrayA 0 ArrayA[1] ArrayA 1 resultLine = resultLine + resultNum+ ("\n") resultLine resultLine + resultNum+ ("\n") resultLine + resultNum+ ("\n") resultLine resultNum ("\n") if(op.equals("/")) {
            	resultNum = (ArrayA[0] / ArrayA[1]);
            	resultLine = resultLine + resultNum+ ("\n");
            }
            
            else if(op.equals("?") ){
            	check = false;
            } op.equals("/") op.equals op "/" {
            	resultNum = (ArrayA[0] / ArrayA[1]);
            	resultLine = resultLine + resultNum+ ("\n");
            } resultNum = (ArrayA[0] / ArrayA[1]) resultNum (ArrayA[0] / ArrayA[1]) ArrayA[0] ArrayA 0 ArrayA[1] ArrayA 1 resultLine = resultLine + resultNum+ ("\n") resultLine resultLine + resultNum+ ("\n") resultLine + resultNum+ ("\n") resultLine resultNum ("\n") if(op.equals("?") ){
            	check = false;
            } op.equals("?") op.equals op "?" {
            	check = false;
            } check = false check false System.out.print(resultLine) System.out.print System.out System System.out resultLine String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main {
	public static void main(String[] args) throws IOException{
		
		BufferedReader br =
				new BufferedReader(new InputStreamReader(System.in));
		
		String op;
		String[] ArrayX = new String[3];
		int[] ArrayA = new int[2];
		int resultNum = 0;
		String resultLine = "";

        boolean check = true;
        while(check){
            String line = br.readLine();
            ArrayX = line.split(" ");
            op = ArrayX[1];
            ArrayA[0] = Integer.parseInt(ArrayX[0]);
            ArrayA[1] = Integer.parseInt(ArrayX[2]);
            
            if(op.equals("+")) {
            	resultNum = ArrayA[0] + ArrayA[1];
            	resultLine = resultLine + resultNum + ("\n");
            }
            else if(op.equals("-")) {
            	resultNum = ArrayA[0] - ArrayA[1];
            	resultLine = resultLine + resultNum+ ("\n");
            }
            else if(op.equals("*")) {
            	resultNum = ArrayA[0] * ArrayA[1];
            	resultLine = resultLine + resultNum+ ("\n");
            }
            else if(op.equals("/")) {
            	resultNum = (ArrayA[0] / ArrayA[1]);
            	resultLine = resultLine + resultNum+ ("\n");
            }
            
            else if(op.equals("?") ){
            	check = false;
            }
        }
        System.out.print(resultLine);
	}
}