import java.util.Scanner;

class Main {
	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		StringBuilder str = new StringBuilder();

		int z = 0;

		while (true) {

			int x = scan.nextInt();
			String op = scan.next();
			int y = scan.nextInt();

			if (op.equals("+"))
				z = x + y;
			if (op.equals("-"))
				z = x - y;
			if (op.equals("*"))
				z = x * y;
			if (op.equals("/"))
				z = x / y;

			if (op.equals("?"))
				break;

			str.append(z + "\n");
		}

		System.out.print(str);

	}
} import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		StringBuilder str = new StringBuilder();

		int z = 0;

		while (true) {

			int x = scan.nextInt();
			String op = scan.next();
			int y = scan.nextInt();

			if (op.equals("+"))
				z = x + y;
			if (op.equals("-"))
				z = x - y;
			if (op.equals("*"))
				z = x * y;
			if (op.equals("/"))
				z = x / y;

			if (op.equals("?"))
				break;

			str.append(z + "\n");
		}

		System.out.print(str);

	}
} Main public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		StringBuilder str = new StringBuilder();

		int z = 0;

		while (true) {

			int x = scan.nextInt();
			String op = scan.next();
			int y = scan.nextInt();

			if (op.equals("+"))
				z = x + y;
			if (op.equals("-"))
				z = x - y;
			if (op.equals("*"))
				z = x * y;
			if (op.equals("/"))
				z = x / y;

			if (op.equals("?"))
				break;

			str.append(z + "\n");
		}

		System.out.print(str);

	} main {

		Scanner scan = new Scanner(System.in);
		StringBuilder str = new StringBuilder();

		int z = 0;

		while (true) {

			int x = scan.nextInt();
			String op = scan.next();
			int y = scan.nextInt();

			if (op.equals("+"))
				z = x + y;
			if (op.equals("-"))
				z = x - y;
			if (op.equals("*"))
				z = x * y;
			if (op.equals("/"))
				z = x / y;

			if (op.equals("?"))
				break;

			str.append(z + "\n");
		}

		System.out.print(str);

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) StringBuilder str = new StringBuilder(); str new StringBuilder() int z = 0; z 0 while (true) {

			int x = scan.nextInt();
			String op = scan.next();
			int y = scan.nextInt();

			if (op.equals("+"))
				z = x + y;
			if (op.equals("-"))
				z = x - y;
			if (op.equals("*"))
				z = x * y;
			if (op.equals("/"))
				z = x / y;

			if (op.equals("?"))
				break;

			str.append(z + "\n");
		} true {

			int x = scan.nextInt();
			String op = scan.next();
			int y = scan.nextInt();

			if (op.equals("+"))
				z = x + y;
			if (op.equals("-"))
				z = x - y;
			if (op.equals("*"))
				z = x * y;
			if (op.equals("/"))
				z = x / y;

			if (op.equals("?"))
				break;

			str.append(z + "\n");
		} int x = scan.nextInt(); x scan.nextInt() scan.nextInt scan String op = scan.next(); op scan.next() scan.next scan int y = scan.nextInt(); y scan.nextInt() scan.nextInt scan if (op.equals("+"))
				z = x + y; op.equals("+") op.equals op "+" z = x + y z x + y x y if (op.equals("-"))
				z = x - y; op.equals("-") op.equals op "-" z = x - y z x - y x y if (op.equals("*"))
				z = x * y; op.equals("*") op.equals op "*" z = x * y z x * y x y if (op.equals("/"))
				z = x / y; op.equals("/") op.equals op "/" z = x / y z x / y x y if (op.equals("?"))
				break; op.equals("?") op.equals op "?" break; str.append(z + "\n") str.append str z + "\n" z "\n" System.out.print(str) System.out.print System.out System System.out str String[] args args
import java.util.Scanner;

class Main {
	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		StringBuilder str = new StringBuilder();

		int z = 0;

		while (true) {

			int x = scan.nextInt();
			String op = scan.next();
			int y = scan.nextInt();

			if (op.equals("+"))
				z = x + y;
			if (op.equals("-"))
				z = x - y;
			if (op.equals("*"))
				z = x * y;
			if (op.equals("/"))
				z = x / y;

			if (op.equals("?"))
				break;

			str.append(z + "\n");
		}

		System.out.print(str);

	}
}