import java.util.Scanner;

public class Main {

	public static Scanner scanner = new Scanner(System.in);

	public static void main(String[] args) {

		StringBuilder output = new StringBuilder();

		while (true) {

			int a = Integer.parseInt(input());
			String op = input();
			int b = Integer.parseInt(input());

			if (op.equals("+")) {

				output.append(a + b);

			} else if (op.equals("-")) {

				output.append(a - b);

			} else if (op.equals("*")) {

				output.append(a * b);

			}else if (op.equals("/")) {

				output.append(a / b);

			} else if (op.equals("?")) {

				output.delete(output.length() - 1, output.length());
				break;

			}

			output.append("\n");

		}

		System.out.println(output);
		close();

	}

	public static String input() {

		return scanner.next();

	}

	public static void close() {

		if (scanner != null) {

			scanner.close();

		}
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static Scanner scanner = new Scanner(System.in);

	public static void main(String[] args) {

		StringBuilder output = new StringBuilder();

		while (true) {

			int a = Integer.parseInt(input());
			String op = input();
			int b = Integer.parseInt(input());

			if (op.equals("+")) {

				output.append(a + b);

			} else if (op.equals("-")) {

				output.append(a - b);

			} else if (op.equals("*")) {

				output.append(a * b);

			}else if (op.equals("/")) {

				output.append(a / b);

			} else if (op.equals("?")) {

				output.delete(output.length() - 1, output.length());
				break;

			}

			output.append("\n");

		}

		System.out.println(output);
		close();

	}

	public static String input() {

		return scanner.next();

	}

	public static void close() {

		if (scanner != null) {

			scanner.close();

		}
	}
} Main public static Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) public static void main(String[] args) {

		StringBuilder output = new StringBuilder();

		while (true) {

			int a = Integer.parseInt(input());
			String op = input();
			int b = Integer.parseInt(input());

			if (op.equals("+")) {

				output.append(a + b);

			} else if (op.equals("-")) {

				output.append(a - b);

			} else if (op.equals("*")) {

				output.append(a * b);

			}else if (op.equals("/")) {

				output.append(a / b);

			} else if (op.equals("?")) {

				output.delete(output.length() - 1, output.length());
				break;

			}

			output.append("\n");

		}

		System.out.println(output);
		close();

	} main {

		StringBuilder output = new StringBuilder();

		while (true) {

			int a = Integer.parseInt(input());
			String op = input();
			int b = Integer.parseInt(input());

			if (op.equals("+")) {

				output.append(a + b);

			} else if (op.equals("-")) {

				output.append(a - b);

			} else if (op.equals("*")) {

				output.append(a * b);

			}else if (op.equals("/")) {

				output.append(a / b);

			} else if (op.equals("?")) {

				output.delete(output.length() - 1, output.length());
				break;

			}

			output.append("\n");

		}

		System.out.println(output);
		close();

	} StringBuilder output = new StringBuilder(); output new StringBuilder() while (true) {

			int a = Integer.parseInt(input());
			String op = input();
			int b = Integer.parseInt(input());

			if (op.equals("+")) {

				output.append(a + b);

			} else if (op.equals("-")) {

				output.append(a - b);

			} else if (op.equals("*")) {

				output.append(a * b);

			}else if (op.equals("/")) {

				output.append(a / b);

			} else if (op.equals("?")) {

				output.delete(output.length() - 1, output.length());
				break;

			}

			output.append("\n");

		} true {

			int a = Integer.parseInt(input());
			String op = input();
			int b = Integer.parseInt(input());

			if (op.equals("+")) {

				output.append(a + b);

			} else if (op.equals("-")) {

				output.append(a - b);

			} else if (op.equals("*")) {

				output.append(a * b);

			}else if (op.equals("/")) {

				output.append(a / b);

			} else if (op.equals("?")) {

				output.delete(output.length() - 1, output.length());
				break;

			}

			output.append("\n");

		} int a = Integer.parseInt(input()); a Integer.parseInt(input()) Integer.parseInt Integer input() input String op = input(); op input() input int b = Integer.parseInt(input()); b Integer.parseInt(input()) Integer.parseInt Integer input() input if (op.equals("+")) {

				output.append(a + b);

			} else if (op.equals("-")) {

				output.append(a - b);

			} else if (op.equals("*")) {

				output.append(a * b);

			}else if (op.equals("/")) {

				output.append(a / b);

			} else if (op.equals("?")) {

				output.delete(output.length() - 1, output.length());
				break;

			} op.equals("+") op.equals op "+" {

				output.append(a + b);

			} output.append(a + b) output.append output a + b a b if (op.equals("-")) {

				output.append(a - b);

			} else if (op.equals("*")) {

				output.append(a * b);

			}else if (op.equals("/")) {

				output.append(a / b);

			} else if (op.equals("?")) {

				output.delete(output.length() - 1, output.length());
				break;

			} op.equals("-") op.equals op "-" {

				output.append(a - b);

			} output.append(a - b) output.append output a - b a b if (op.equals("*")) {

				output.append(a * b);

			}else if (op.equals("/")) {

				output.append(a / b);

			} else if (op.equals("?")) {

				output.delete(output.length() - 1, output.length());
				break;

			} op.equals("*") op.equals op "*" {

				output.append(a * b);

			} output.append(a * b) output.append output a * b a b if (op.equals("/")) {

				output.append(a / b);

			} else if (op.equals("?")) {

				output.delete(output.length() - 1, output.length());
				break;

			} op.equals("/") op.equals op "/" {

				output.append(a / b);

			} output.append(a / b) output.append output a / b a b if (op.equals("?")) {

				output.delete(output.length() - 1, output.length());
				break;

			} op.equals("?") op.equals op "?" {

				output.delete(output.length() - 1, output.length());
				break;

			} output.delete(output.length() - 1, output.length()) output.delete output output.length() - 1 output.length() output.length output 1 output.length() output.length output break; output.append("\n") output.append output "\n" System.out.println(output) System.out.println System.out System System.out output close() close String[] args args public static String input() {

		return scanner.next();

	} input {

		return scanner.next();

	} return scanner.next(); scanner.next() scanner.next scanner public static void close() {

		if (scanner != null) {

			scanner.close();

		}
	} close {

		if (scanner != null) {

			scanner.close();

		}
	} if (scanner != null) {

			scanner.close();

		} scanner != null scanner null {

			scanner.close();

		} scanner.close() scanner.close scanner public class Main {

	public static Scanner scanner = new Scanner(System.in);

	public static void main(String[] args) {

		StringBuilder output = new StringBuilder();

		while (true) {

			int a = Integer.parseInt(input());
			String op = input();
			int b = Integer.parseInt(input());

			if (op.equals("+")) {

				output.append(a + b);

			} else if (op.equals("-")) {

				output.append(a - b);

			} else if (op.equals("*")) {

				output.append(a * b);

			}else if (op.equals("/")) {

				output.append(a / b);

			} else if (op.equals("?")) {

				output.delete(output.length() - 1, output.length());
				break;

			}

			output.append("\n");

		}

		System.out.println(output);
		close();

	}

	public static String input() {

		return scanner.next();

	}

	public static void close() {

		if (scanner != null) {

			scanner.close();

		}
	}
} public class Main {

	public static Scanner scanner = new Scanner(System.in);

	public static void main(String[] args) {

		StringBuilder output = new StringBuilder();

		while (true) {

			int a = Integer.parseInt(input());
			String op = input();
			int b = Integer.parseInt(input());

			if (op.equals("+")) {

				output.append(a + b);

			} else if (op.equals("-")) {

				output.append(a - b);

			} else if (op.equals("*")) {

				output.append(a * b);

			}else if (op.equals("/")) {

				output.append(a / b);

			} else if (op.equals("?")) {

				output.delete(output.length() - 1, output.length());
				break;

			}

			output.append("\n");

		}

		System.out.println(output);
		close();

	}

	public static String input() {

		return scanner.next();

	}

	public static void close() {

		if (scanner != null) {

			scanner.close();

		}
	}
} Main
import java.util.Scanner;

public class Main {

	public static Scanner scanner = new Scanner(System.in);

	public static void main(String[] args) {

		StringBuilder output = new StringBuilder();

		while (true) {

			int a = Integer.parseInt(input());
			String op = input();
			int b = Integer.parseInt(input());

			if (op.equals("+")) {

				output.append(a + b);

			} else if (op.equals("-")) {

				output.append(a - b);

			} else if (op.equals("*")) {

				output.append(a * b);

			}else if (op.equals("/")) {

				output.append(a / b);

			} else if (op.equals("?")) {

				output.delete(output.length() - 1, output.length());
				break;

			}

			output.append("\n");

		}

		System.out.println(output);
		close();

	}

	public static String input() {

		return scanner.next();

	}

	public static void close() {

		if (scanner != null) {

			scanner.close();

		}
	}
}