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));
		}

	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.ArrayList; ArrayList java.util 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));
		}

	}

} 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));
		}

	} main {
		/**
		 * ?????°?????£?¨?
		 */
		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));
		}

	} int a = 0 a 0 b = 0; b 0 int length = 0; length 0 int result = 0; result 0 int flag = 0; flag 0 String op = ""; op "" String str; str ArrayList<String> operant = new ArrayList<String>(); operant new ArrayList<String>() ArrayList<Integer> answer = new ArrayList<Integer>(); answer new ArrayList<Integer>() String[] box = new String[3]; box new String[3] 3 BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); 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;
			}
		} 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;
			}
		} str = br.readLine() str br.readLine() br.readLine br box = str.split(" ", 0) box str.split(" ", 0) str.split str " " 0 a = Integer.parseInt(box[0]) a Integer.parseInt(box[0]) Integer.parseInt Integer box[0] box 0 b = Integer.parseInt(box[2]) b Integer.parseInt(box[2]) Integer.parseInt Integer box[2] box 2 op = box[1] op box[1] 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;
				} op.equals("+") op.equals op "+" {
					result = (a + b);
				} result = (a + b) result (a + b) a b 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;
				} op.equals("-") op.equals op "-" {
					result = (a - b);
				} result = (a - b) result (a - b) a b 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;
				} op.equals("*") op.equals op "*" {
					result = (a * b);
				} result = (a * b) result (a * b) a b if (op.equals("/") && b != 0) {
					result = (a / b);
				} else if (op.equals("?")) {
					flag = 1;
					break;
				} else if (op.equals("/") && b == 0) {
					flag = 1;
					break;
				} op.equals("/") && b != 0 op.equals("/") op.equals op "/" b != 0 b 0 {
					result = (a / b);
				} result = (a / b) result (a / b) a b if (op.equals("?")) {
					flag = 1;
					break;
				} else if (op.equals("/") && b == 0) {
					flag = 1;
					break;
				} op.equals("?") op.equals op "?" {
					flag = 1;
					break;
				} flag = 1 flag 1 break; if (op.equals("/") && b == 0) {
					flag = 1;
					break;
				} op.equals("/") && b == 0 op.equals("/") op.equals op "/" b == 0 b 0 {
					flag = 1;
					break;
				} flag = 1 flag 1 break; answer.add(result) answer.add answer result if(flag == 1){
				break;
			} flag == 1 flag 1 {
				break;
			} break; for(int j = 0; j < answer.size(); ++j){
			System.out.println(answer.get(j));
		} int j = 0; int j = 0; j 0 j < answer.size() j answer.size() answer.size answer ++j ++j j {
			System.out.println(answer.get(j));
		} {
			System.out.println(answer.get(j));
		} System.out.println(answer.get(j)) System.out.println System.out System System.out answer.get(j) answer.get answer j String[] args args 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));
		}

	}

} 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));
		}

	}

} Main
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));
		}

	}

}