import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main{
	private static int res;

	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		while (true) {
			String[] str = in.readLine().split(" ");
			int a = Integer.parseInt(str[0]);
			String op = str[1];
			int b = Integer.parseInt(str[2]);

			if (op.equals("+")) {
				res = a + b;
			} else if (op.equals("-")) {
				res = a - b;
			} else if (op.equals("*")) {
				res = a * b;
			} else if (op.equals("/")) {
				res = a / b;
			} else if (op.equals("?")) {
				break;
			}
			System.out.printf("%d%n", res);
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io class Main{
	private static int res;

	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		while (true) {
			String[] str = in.readLine().split(" ");
			int a = Integer.parseInt(str[0]);
			String op = str[1];
			int b = Integer.parseInt(str[2]);

			if (op.equals("+")) {
				res = a + b;
			} else if (op.equals("-")) {
				res = a - b;
			} else if (op.equals("*")) {
				res = a * b;
			} else if (op.equals("/")) {
				res = a / b;
			} else if (op.equals("?")) {
				break;
			}
			System.out.printf("%d%n", res);
		}
	}
} Main private static int res; res public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		while (true) {
			String[] str = in.readLine().split(" ");
			int a = Integer.parseInt(str[0]);
			String op = str[1];
			int b = Integer.parseInt(str[2]);

			if (op.equals("+")) {
				res = a + b;
			} else if (op.equals("-")) {
				res = a - b;
			} else if (op.equals("*")) {
				res = a * b;
			} else if (op.equals("/")) {
				res = a / b;
			} else if (op.equals("?")) {
				break;
			}
			System.out.printf("%d%n", res);
		}
	} main {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		while (true) {
			String[] str = in.readLine().split(" ");
			int a = Integer.parseInt(str[0]);
			String op = str[1];
			int b = Integer.parseInt(str[2]);

			if (op.equals("+")) {
				res = a + b;
			} else if (op.equals("-")) {
				res = a - b;
			} else if (op.equals("*")) {
				res = a * b;
			} else if (op.equals("/")) {
				res = a / b;
			} else if (op.equals("?")) {
				break;
			}
			System.out.printf("%d%n", res);
		}
	} BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) while (true) {
			String[] str = in.readLine().split(" ");
			int a = Integer.parseInt(str[0]);
			String op = str[1];
			int b = Integer.parseInt(str[2]);

			if (op.equals("+")) {
				res = a + b;
			} else if (op.equals("-")) {
				res = a - b;
			} else if (op.equals("*")) {
				res = a * b;
			} else if (op.equals("/")) {
				res = a / b;
			} else if (op.equals("?")) {
				break;
			}
			System.out.printf("%d%n", res);
		} true {
			String[] str = in.readLine().split(" ");
			int a = Integer.parseInt(str[0]);
			String op = str[1];
			int b = Integer.parseInt(str[2]);

			if (op.equals("+")) {
				res = a + b;
			} else if (op.equals("-")) {
				res = a - b;
			} else if (op.equals("*")) {
				res = a * b;
			} else if (op.equals("/")) {
				res = a / b;
			} else if (op.equals("?")) {
				break;
			}
			System.out.printf("%d%n", res);
		} String[] str = in.readLine().split(" "); str in.readLine().split(" ") in.readLine().split in.readLine() in.readLine in " " int a = Integer.parseInt(str[0]); a Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 String op = str[1]; op str[1] str 1 int b = Integer.parseInt(str[2]); b Integer.parseInt(str[2]) Integer.parseInt Integer str[2] str 2 if (op.equals("+")) {
				res = a + b;
			} else if (op.equals("-")) {
				res = a - b;
			} else if (op.equals("*")) {
				res = a * b;
			} else if (op.equals("/")) {
				res = a / b;
			} else if (op.equals("?")) {
				break;
			} op.equals("+") op.equals op "+" {
				res = a + b;
			} res = a + b res a + b a b if (op.equals("-")) {
				res = a - b;
			} else if (op.equals("*")) {
				res = a * b;
			} else if (op.equals("/")) {
				res = a / b;
			} else if (op.equals("?")) {
				break;
			} op.equals("-") op.equals op "-" {
				res = a - b;
			} res = a - b res a - b a b if (op.equals("*")) {
				res = a * b;
			} else if (op.equals("/")) {
				res = a / b;
			} else if (op.equals("?")) {
				break;
			} op.equals("*") op.equals op "*" {
				res = a * b;
			} res = a * b res a * b a b if (op.equals("/")) {
				res = a / b;
			} else if (op.equals("?")) {
				break;
			} op.equals("/") op.equals op "/" {
				res = a / b;
			} res = a / b res a / b a b if (op.equals("?")) {
				break;
			} op.equals("?") op.equals op "?" {
				break;
			} break; System.out.printf("%d%n", res) System.out.printf System.out System System.out "%d%n" res String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main{
	private static int res;

	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		while (true) {
			String[] str = in.readLine().split(" ");
			int a = Integer.parseInt(str[0]);
			String op = str[1];
			int b = Integer.parseInt(str[2]);

			if (op.equals("+")) {
				res = a + b;
			} else if (op.equals("-")) {
				res = a - b;
			} else if (op.equals("*")) {
				res = a * b;
			} else if (op.equals("/")) {
				res = a / b;
			} else if (op.equals("?")) {
				break;
			}
			System.out.printf("%d%n", res);
		}
	}
}