//Simple Calculator
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main {

	public static void main(String[] args) throws IOException {

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		String input;
		while (!(input = in.readLine()).equals("0 ? 0")) {
			String[] aOpb = input.split(" ");
			// String[] aOpb = "1 ? 2".split(" ");
			int a = Integer.parseInt(aOpb[0]);
			String op = aOpb[1];
			int b = Integer.parseInt(aOpb[2]);

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

			int ans = 0;

			if (op.equals("+")) {
				ans = a+b;
			} else if (op.equals("-")) {
				ans = a-b;
			} else if (op.equals("*")) {
				ans = a*b;
			} else if (op.equals("/")) {
				ans = a/b;
			}
			System.out.println(ans);
		}

	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io class Main {

	public static void main(String[] args) throws IOException {

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		String input;
		while (!(input = in.readLine()).equals("0 ? 0")) {
			String[] aOpb = input.split(" ");
			// String[] aOpb = "1 ? 2".split(" ");
			int a = Integer.parseInt(aOpb[0]);
			String op = aOpb[1];
			int b = Integer.parseInt(aOpb[2]);

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

			int ans = 0;

			if (op.equals("+")) {
				ans = a+b;
			} else if (op.equals("-")) {
				ans = a-b;
			} else if (op.equals("*")) {
				ans = a*b;
			} else if (op.equals("/")) {
				ans = a/b;
			}
			System.out.println(ans);
		}

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

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		String input;
		while (!(input = in.readLine()).equals("0 ? 0")) {
			String[] aOpb = input.split(" ");
			// String[] aOpb = "1 ? 2".split(" ");
			int a = Integer.parseInt(aOpb[0]);
			String op = aOpb[1];
			int b = Integer.parseInt(aOpb[2]);

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

			int ans = 0;

			if (op.equals("+")) {
				ans = a+b;
			} else if (op.equals("-")) {
				ans = a-b;
			} else if (op.equals("*")) {
				ans = a*b;
			} else if (op.equals("/")) {
				ans = a/b;
			}
			System.out.println(ans);
		}

	} main {

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		String input;
		while (!(input = in.readLine()).equals("0 ? 0")) {
			String[] aOpb = input.split(" ");
			// String[] aOpb = "1 ? 2".split(" ");
			int a = Integer.parseInt(aOpb[0]);
			String op = aOpb[1];
			int b = Integer.parseInt(aOpb[2]);

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

			int ans = 0;

			if (op.equals("+")) {
				ans = a+b;
			} else if (op.equals("-")) {
				ans = a-b;
			} else if (op.equals("*")) {
				ans = a*b;
			} else if (op.equals("/")) {
				ans = a/b;
			}
			System.out.println(ans);
		}

	} BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) String input; input while (!(input = in.readLine()).equals("0 ? 0")) {
			String[] aOpb = input.split(" ");
			// String[] aOpb = "1 ? 2".split(" ");
			int a = Integer.parseInt(aOpb[0]);
			String op = aOpb[1];
			int b = Integer.parseInt(aOpb[2]);

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

			int ans = 0;

			if (op.equals("+")) {
				ans = a+b;
			} else if (op.equals("-")) {
				ans = a-b;
			} else if (op.equals("*")) {
				ans = a*b;
			} else if (op.equals("/")) {
				ans = a/b;
			}
			System.out.println(ans);
		} !(input = in.readLine()).equals("0 ? 0") (input = in.readLine()).equals("0 ? 0") (input = in.readLine()).equals (input = in.readLine()) input in.readLine() in.readLine in "0 ? 0" {
			String[] aOpb = input.split(" ");
			// String[] aOpb = "1 ? 2".split(" ");
			int a = Integer.parseInt(aOpb[0]);
			String op = aOpb[1];
			int b = Integer.parseInt(aOpb[2]);

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

			int ans = 0;

			if (op.equals("+")) {
				ans = a+b;
			} else if (op.equals("-")) {
				ans = a-b;
			} else if (op.equals("*")) {
				ans = a*b;
			} else if (op.equals("/")) {
				ans = a/b;
			}
			System.out.println(ans);
		} String[] aOpb = input.split(" "); aOpb input.split(" ") input.split input " " int a = Integer.parseInt(aOpb[0]); a Integer.parseInt(aOpb[0]) Integer.parseInt Integer aOpb[0] aOpb 0 String op = aOpb[1]; op aOpb[1] aOpb 1 int b = Integer.parseInt(aOpb[2]); b Integer.parseInt(aOpb[2]) Integer.parseInt Integer aOpb[2] aOpb 2 if (op.equals("?")) {
				break;
			} op.equals("?") op.equals op "?" {
				break;
			} break; int ans = 0; ans 0 if (op.equals("+")) {
				ans = a+b;
			} else if (op.equals("-")) {
				ans = a-b;
			} else if (op.equals("*")) {
				ans = a*b;
			} else if (op.equals("/")) {
				ans = a/b;
			} op.equals("+") op.equals op "+" {
				ans = a+b;
			} ans = a+b ans a+b a b if (op.equals("-")) {
				ans = a-b;
			} else if (op.equals("*")) {
				ans = a*b;
			} else if (op.equals("/")) {
				ans = a/b;
			} op.equals("-") op.equals op "-" {
				ans = a-b;
			} ans = a-b ans a-b a b if (op.equals("*")) {
				ans = a*b;
			} else if (op.equals("/")) {
				ans = a/b;
			} op.equals("*") op.equals op "*" {
				ans = a*b;
			} ans = a*b ans a*b a b if (op.equals("/")) {
				ans = a/b;
			} op.equals("/") op.equals op "/" {
				ans = a/b;
			} ans = a/b ans a/b a b System.out.println(ans) System.out.println System.out System System.out ans String[] args args
//Simple Calculator
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main {

	public static void main(String[] args) throws IOException {

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		String input;
		while (!(input = in.readLine()).equals("0 ? 0")) {
			String[] aOpb = input.split(" ");
			// String[] aOpb = "1 ? 2".split(" ");
			int a = Integer.parseInt(aOpb[0]);
			String op = aOpb[1];
			int b = Integer.parseInt(aOpb[2]);

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

			int ans = 0;

			if (op.equals("+")) {
				ans = a+b;
			} else if (op.equals("-")) {
				ans = a-b;
			} else if (op.equals("*")) {
				ans = a*b;
			} else if (op.equals("/")) {
				ans = a/b;
			}
			System.out.println(ans);
		}

	}
}