import java.util.Scanner;

public class Main {
	int a, b;
	String op = "";
	
	public static void main(String[] args) {
		new Main().run();
	}
	
	void run() {
		Scanner sc = new Scanner(System.in);
		while(!op.equals("?")) {
			a = sc.nextInt();
			op = sc.next();
			b = sc.nextInt();
			if(!op.equals("?"))System.out.println(calc(a, op, b));
		}
		sc.close();
	}
	
	int calc(int a, String op, int b) {
		if(op.equals("+")) return a + b;
		if(op.equals("-")) return a - b;
		if(op.equals("*")) return a * b;
		if(op.equals("/")) return a / b;
		return 0;
	}
}
 import java.util.Scanner; Scanner java.util public class Main {
	int a, b;
	String op = "";
	
	public static void main(String[] args) {
		new Main().run();
	}
	
	void run() {
		Scanner sc = new Scanner(System.in);
		while(!op.equals("?")) {
			a = sc.nextInt();
			op = sc.next();
			b = sc.nextInt();
			if(!op.equals("?"))System.out.println(calc(a, op, b));
		}
		sc.close();
	}
	
	int calc(int a, String op, int b) {
		if(op.equals("+")) return a + b;
		if(op.equals("-")) return a - b;
		if(op.equals("*")) return a * b;
		if(op.equals("/")) return a / b;
		return 0;
	}
} Main int a a b; b String op = ""; op "" public static void main(String[] args) {
		new Main().run();
	} main {
		new Main().run();
	} new Main().run() new Main().run new Main() String[] args args void run() {
		Scanner sc = new Scanner(System.in);
		while(!op.equals("?")) {
			a = sc.nextInt();
			op = sc.next();
			b = sc.nextInt();
			if(!op.equals("?"))System.out.println(calc(a, op, b));
		}
		sc.close();
	} run {
		Scanner sc = new Scanner(System.in);
		while(!op.equals("?")) {
			a = sc.nextInt();
			op = sc.next();
			b = sc.nextInt();
			if(!op.equals("?"))System.out.println(calc(a, op, b));
		}
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while(!op.equals("?")) {
			a = sc.nextInt();
			op = sc.next();
			b = sc.nextInt();
			if(!op.equals("?"))System.out.println(calc(a, op, b));
		} !op.equals("?") op.equals("?") op.equals op "?" {
			a = sc.nextInt();
			op = sc.next();
			b = sc.nextInt();
			if(!op.equals("?"))System.out.println(calc(a, op, b));
		} a = sc.nextInt() a sc.nextInt() sc.nextInt sc op = sc.next() op sc.next() sc.next sc b = sc.nextInt() b sc.nextInt() sc.nextInt sc if(!op.equals("?"))System.out.println(calc(a, op, b)); !op.equals("?") op.equals("?") op.equals op "?" System.out.println(calc(a, op, b)) System.out.println System.out System System.out calc(a, op, b) calc a op b sc.close() sc.close sc int calc(int a, String op, int b) {
		if(op.equals("+")) return a + b;
		if(op.equals("-")) return a - b;
		if(op.equals("*")) return a * b;
		if(op.equals("/")) return a / b;
		return 0;
	} calc {
		if(op.equals("+")) return a + b;
		if(op.equals("-")) return a - b;
		if(op.equals("*")) return a * b;
		if(op.equals("/")) return a / b;
		return 0;
	} if(op.equals("+")) return a + b; op.equals("+") op.equals op "+" return a + b; a + b a b if(op.equals("-")) return a - b; op.equals("-") op.equals op "-" return a - b; a - b a b if(op.equals("*")) return a * b; op.equals("*") op.equals op "*" return a * b; a * b a b if(op.equals("/")) return a / b; op.equals("/") op.equals op "/" return a / b; a / b a b return 0; 0 int a a String op op int b b public class Main {
	int a, b;
	String op = "";
	
	public static void main(String[] args) {
		new Main().run();
	}
	
	void run() {
		Scanner sc = new Scanner(System.in);
		while(!op.equals("?")) {
			a = sc.nextInt();
			op = sc.next();
			b = sc.nextInt();
			if(!op.equals("?"))System.out.println(calc(a, op, b));
		}
		sc.close();
	}
	
	int calc(int a, String op, int b) {
		if(op.equals("+")) return a + b;
		if(op.equals("-")) return a - b;
		if(op.equals("*")) return a * b;
		if(op.equals("/")) return a / b;
		return 0;
	}
} public class Main {
	int a, b;
	String op = "";
	
	public static void main(String[] args) {
		new Main().run();
	}
	
	void run() {
		Scanner sc = new Scanner(System.in);
		while(!op.equals("?")) {
			a = sc.nextInt();
			op = sc.next();
			b = sc.nextInt();
			if(!op.equals("?"))System.out.println(calc(a, op, b));
		}
		sc.close();
	}
	
	int calc(int a, String op, int b) {
		if(op.equals("+")) return a + b;
		if(op.equals("-")) return a - b;
		if(op.equals("*")) return a * b;
		if(op.equals("/")) return a / b;
		return 0;
	}
} Main
import java.util.Scanner;

public class Main {
	int a, b;
	String op = "";
	
	public static void main(String[] args) {
		new Main().run();
	}
	
	void run() {
		Scanner sc = new Scanner(System.in);
		while(!op.equals("?")) {
			a = sc.nextInt();
			op = sc.next();
			b = sc.nextInt();
			if(!op.equals("?"))System.out.println(calc(a, op, b));
		}
		sc.close();
	}
	
	int calc(int a, String op, int b) {
		if(op.equals("+")) return a + b;
		if(op.equals("-")) return a - b;
		if(op.equals("*")) return a * b;
		if(op.equals("/")) return a / b;
		return 0;
	}
}

