import java.io.*;
public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str;
		String[] strs;
		int a;
		String op;
		int b;
		int ans = 0;//解答
		while(true){
			str = br.readLine();
			strs = str.split(" ");
			a = Integer.parseInt(strs[0]);
			op = strs[1];
			b = Integer.parseInt(strs[2]);
			if(op.equals("?")){
				break;
			}else if(op.equals("+")){
				ans = a + b;
			}else if(op.equals("-")){
				ans = a - b;
			}else if(op.equals("*")){
				ans = a * b;
			}else if(op.equals("/")){
				ans = a / b;
			}//if
			System.out.println(ans);
		}//while
	}
} import java.io.*; io.* java public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str;
		String[] strs;
		int a;
		String op;
		int b;
		int ans = 0;//解答
		while(true){
			str = br.readLine();
			strs = str.split(" ");
			a = Integer.parseInt(strs[0]);
			op = strs[1];
			b = Integer.parseInt(strs[2]);
			if(op.equals("?")){
				break;
			}else if(op.equals("+")){
				ans = a + b;
			}else if(op.equals("-")){
				ans = a - b;
			}else if(op.equals("*")){
				ans = a * b;
			}else if(op.equals("/")){
				ans = a / b;
			}//if
			System.out.println(ans);
		}//while
	}
} Main public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str;
		String[] strs;
		int a;
		String op;
		int b;
		int ans = 0;//解答
		while(true){
			str = br.readLine();
			strs = str.split(" ");
			a = Integer.parseInt(strs[0]);
			op = strs[1];
			b = Integer.parseInt(strs[2]);
			if(op.equals("?")){
				break;
			}else if(op.equals("+")){
				ans = a + b;
			}else if(op.equals("-")){
				ans = a - b;
			}else if(op.equals("*")){
				ans = a * b;
			}else if(op.equals("/")){
				ans = a / b;
			}//if
			System.out.println(ans);
		}//while
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str;
		String[] strs;
		int a;
		String op;
		int b;
		int ans = 0;//解答
		while(true){
			str = br.readLine();
			strs = str.split(" ");
			a = Integer.parseInt(strs[0]);
			op = strs[1];
			b = Integer.parseInt(strs[2]);
			if(op.equals("?")){
				break;
			}else if(op.equals("+")){
				ans = a + b;
			}else if(op.equals("-")){
				ans = a - b;
			}else if(op.equals("*")){
				ans = a * b;
			}else if(op.equals("/")){
				ans = a / b;
			}//if
			System.out.println(ans);
		}//while
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str; str String[] strs; strs int a; a String op; op int b; b int ans = 0; ans 0 while(true){
			str = br.readLine();
			strs = str.split(" ");
			a = Integer.parseInt(strs[0]);
			op = strs[1];
			b = Integer.parseInt(strs[2]);
			if(op.equals("?")){
				break;
			}else if(op.equals("+")){
				ans = a + b;
			}else if(op.equals("-")){
				ans = a - b;
			}else if(op.equals("*")){
				ans = a * b;
			}else if(op.equals("/")){
				ans = a / b;
			}//if
			System.out.println(ans);
		}//while true {
			str = br.readLine();
			strs = str.split(" ");
			a = Integer.parseInt(strs[0]);
			op = strs[1];
			b = Integer.parseInt(strs[2]);
			if(op.equals("?")){
				break;
			}else if(op.equals("+")){
				ans = a + b;
			}else if(op.equals("-")){
				ans = a - b;
			}else if(op.equals("*")){
				ans = a * b;
			}else if(op.equals("/")){
				ans = a / b;
			}//if
			System.out.println(ans);
		} str = br.readLine() str br.readLine() br.readLine br strs = str.split(" ") strs str.split(" ") str.split str " " a = Integer.parseInt(strs[0]) a Integer.parseInt(strs[0]) Integer.parseInt Integer strs[0] strs 0 op = strs[1] op strs[1] strs 1 b = Integer.parseInt(strs[2]) b Integer.parseInt(strs[2]) Integer.parseInt Integer strs[2] strs 2 if(op.equals("?")){
				break;
			}else if(op.equals("+")){
				ans = a + b;
			}else if(op.equals("-")){
				ans = a - b;
			}else if(op.equals("*")){
				ans = a * b;
			}else if(op.equals("/")){
				ans = a / b;
			}//if op.equals("?") op.equals op "?" {
				break;
			} break; if(op.equals("+")){
				ans = a + b;
			}else if(op.equals("-")){
				ans = a - b;
			}else if(op.equals("*")){
				ans = a * b;
			}else if(op.equals("/")){
				ans = a / b;
			}//if op.equals("+") op.equals op "+" {
				ans = a + b;
			} ans = a + b ans a + b a b if(op.equals("-")){
				ans = a - b;
			}else if(op.equals("*")){
				ans = a * b;
			}else if(op.equals("/")){
				ans = a / b;
			}//if op.equals("-") op.equals op "-" {
				ans = a - b;
			} ans = a - b ans a - b a b if(op.equals("*")){
				ans = a * b;
			}else if(op.equals("/")){
				ans = a / b;
			}//if op.equals("*") op.equals op "*" {
				ans = a * b;
			} ans = a * b ans a * b a b if(op.equals("/")){
				ans = a / b;
			}//if op.equals("/") op.equals op "/" {
				ans = a / b;
			} ans = a / b ans a / b a b System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str;
		String[] strs;
		int a;
		String op;
		int b;
		int ans = 0;//解答
		while(true){
			str = br.readLine();
			strs = str.split(" ");
			a = Integer.parseInt(strs[0]);
			op = strs[1];
			b = Integer.parseInt(strs[2]);
			if(op.equals("?")){
				break;
			}else if(op.equals("+")){
				ans = a + b;
			}else if(op.equals("-")){
				ans = a - b;
			}else if(op.equals("*")){
				ans = a * b;
			}else if(op.equals("/")){
				ans = a / b;
			}//if
			System.out.println(ans);
		}//while
	}
} public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str;
		String[] strs;
		int a;
		String op;
		int b;
		int ans = 0;//解答
		while(true){
			str = br.readLine();
			strs = str.split(" ");
			a = Integer.parseInt(strs[0]);
			op = strs[1];
			b = Integer.parseInt(strs[2]);
			if(op.equals("?")){
				break;
			}else if(op.equals("+")){
				ans = a + b;
			}else if(op.equals("-")){
				ans = a - b;
			}else if(op.equals("*")){
				ans = a * b;
			}else if(op.equals("/")){
				ans = a / b;
			}//if
			System.out.println(ans);
		}//while
	}
} Main
import java.io.*;
public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str;
		String[] strs;
		int a;
		String op;
		int b;
		int ans = 0;//解答
		while(true){
			str = br.readLine();
			strs = str.split(" ");
			a = Integer.parseInt(strs[0]);
			op = strs[1];
			b = Integer.parseInt(strs[2]);
			if(op.equals("?")){
				break;
			}else if(op.equals("+")){
				ans = a + b;
			}else if(op.equals("-")){
				ans = a - b;
			}else if(op.equals("*")){
				ans = a * b;
			}else if(op.equals("/")){
				ans = a / b;
			}//if
			System.out.println(ans);
		}//while
	}
}