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

public class Main {
	public static void main(String[] args) throws IOException {
		/**
		 * ?????°?????£?¨?
		 */
		int a = 0, b = 0;
		int length = 0;
		int result = 0;
		int flag = 0;
		String op = "";
		String str;
		/**
		 * ???????????£?¨?
		 */
		ArrayList<String> operant = new ArrayList<String>();
		ArrayList<Integer> answer = new ArrayList<Integer>();
		String[] box = new String[3];
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		/**
		 * ?????????????????\?????¨????????????????´?
		 */
		while (true) {
			str = br.readLine();
			box = str.split(" ", 0); // ????????§????????£?????´??°,????????????1??\????????¨????¨?????????????????????????????§£???????´???????????????????????????¨???
			a = Integer.parseInt(box[0]);
			b = Integer.parseInt(box[2]);
			op = box[1];

				if (op.equals("+")) {
					result = (a + b);
				} else if (op.equals("-")) {
					result = (a - b);
				} else if (op.equals("*")) {
					result = (a * b);
				} else if (op.equals("/") && b != 0) {
					result = (a / b);
				} else if (op.equals("?")) {
					flag = 1;
					break;
				} else if (op.equals("/") && b == 0) {
					flag = 1;
					break;
				}
				answer.add(result);

			if(flag == 1){
				break;
			}
		}
		/**
		 * ??¨???
		 */
		for(int j = 0; j < answer.size(); ++j){
			System.out.println(answer.get(j));
		}

	}

}
/tmp/hf-datasets-cache/medium/datasets/42704881117311-config-parquet-and-info-qiankunmu-Project_CodeNet-896c9d36/hub/datasets--qiankunmu--Project_CodeNet_Python800_and_Java250/snapshots/c899fde44a77ba1cc14973ed3de064e4ff3aadc7/Project_CodeNet_Java250.tar.gz