import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int a, b, answer = 0;
		String operator;

		while (true) {
			a = scanner.nextInt();
			operator = scanner.next();
			b = scanner.nextInt();

			if (operator.equals("+"))
				answer = a + b;
			else if (operator.equals("-"))
				answer = a - b;
			else if (operator.equals("*"))
				answer = a * b;
			else if (operator.equals("/"))
				answer = a / b;
			else if (operator.equals("?"))
				break;

			System.out.println((int) answer);
		}
	}
} import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int a, b, answer = 0;
		String operator;

		while (true) {
			a = scanner.nextInt();
			operator = scanner.next();
			b = scanner.nextInt();

			if (operator.equals("+"))
				answer = a + b;
			else if (operator.equals("-"))
				answer = a - b;
			else if (operator.equals("*"))
				answer = a * b;
			else if (operator.equals("/"))
				answer = a / b;
			else if (operator.equals("?"))
				break;

			System.out.println((int) answer);
		}
	}
} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int a, b, answer = 0;
		String operator;

		while (true) {
			a = scanner.nextInt();
			operator = scanner.next();
			b = scanner.nextInt();

			if (operator.equals("+"))
				answer = a + b;
			else if (operator.equals("-"))
				answer = a - b;
			else if (operator.equals("*"))
				answer = a * b;
			else if (operator.equals("/"))
				answer = a / b;
			else if (operator.equals("?"))
				break;

			System.out.println((int) answer);
		}
	} main {
		Scanner scanner = new Scanner(System.in);
		int a, b, answer = 0;
		String operator;

		while (true) {
			a = scanner.nextInt();
			operator = scanner.next();
			b = scanner.nextInt();

			if (operator.equals("+"))
				answer = a + b;
			else if (operator.equals("-"))
				answer = a - b;
			else if (operator.equals("*"))
				answer = a * b;
			else if (operator.equals("/"))
				answer = a / b;
			else if (operator.equals("?"))
				break;

			System.out.println((int) answer);
		}
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int a a b b answer = 0; answer 0 String operator; operator while (true) {
			a = scanner.nextInt();
			operator = scanner.next();
			b = scanner.nextInt();

			if (operator.equals("+"))
				answer = a + b;
			else if (operator.equals("-"))
				answer = a - b;
			else if (operator.equals("*"))
				answer = a * b;
			else if (operator.equals("/"))
				answer = a / b;
			else if (operator.equals("?"))
				break;

			System.out.println((int) answer);
		} true {
			a = scanner.nextInt();
			operator = scanner.next();
			b = scanner.nextInt();

			if (operator.equals("+"))
				answer = a + b;
			else if (operator.equals("-"))
				answer = a - b;
			else if (operator.equals("*"))
				answer = a * b;
			else if (operator.equals("/"))
				answer = a / b;
			else if (operator.equals("?"))
				break;

			System.out.println((int) answer);
		} a = scanner.nextInt() a scanner.nextInt() scanner.nextInt scanner operator = scanner.next() operator scanner.next() scanner.next scanner b = scanner.nextInt() b scanner.nextInt() scanner.nextInt scanner if (operator.equals("+"))
				answer = a + b;
			else if (operator.equals("-"))
				answer = a - b;
			else if (operator.equals("*"))
				answer = a * b;
			else if (operator.equals("/"))
				answer = a / b;
			else if (operator.equals("?"))
				break; operator.equals("+") operator.equals operator "+" answer = a + b answer a + b a b if (operator.equals("-"))
				answer = a - b;
			else if (operator.equals("*"))
				answer = a * b;
			else if (operator.equals("/"))
				answer = a / b;
			else if (operator.equals("?"))
				break; operator.equals("-") operator.equals operator "-" answer = a - b answer a - b a b if (operator.equals("*"))
				answer = a * b;
			else if (operator.equals("/"))
				answer = a / b;
			else if (operator.equals("?"))
				break; operator.equals("*") operator.equals operator "*" answer = a * b answer a * b a b if (operator.equals("/"))
				answer = a / b;
			else if (operator.equals("?"))
				break; operator.equals("/") operator.equals operator "/" answer = a / b answer a / b a b if (operator.equals("?"))
				break; operator.equals("?") operator.equals operator "?" break; System.out.println((int) answer) System.out.println System.out System System.out (int) answer String[] args args
import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int a, b, answer = 0;
		String operator;

		while (true) {
			a = scanner.nextInt();
			operator = scanner.next();
			b = scanner.nextInt();

			if (operator.equals("+"))
				answer = a + b;
			else if (operator.equals("-"))
				answer = a - b;
			else if (operator.equals("*"))
				answer = a * b;
			else if (operator.equals("/"))
				answer = a / b;
			else if (operator.equals("?"))
				break;

			System.out.println((int) answer);
		}
	}
}