import java.util.ArrayList;
import java.util.Scanner;

public class Main {

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

		ArrayList<String> lines = new ArrayList<String>();

		String string = "";
		int cn = 0;
		while (true) {
			string = sc.nextLine();
			lines.add(string);
			cn++;
			if (string.contains("?")) {
				break;
			}
		}

		int[] in = new int[2];

		for (int i = 0; i < cn - 1; i++) {
			String[] st = lines.get(i).split(" ");
			in[0] = Integer.parseInt(st[0]);
			in[1] = Integer.parseInt(st[2]);

			if (st[1].equals("+")) {
				System.out.println(in[0] + in[1]);
			} else if (st[1].equals("-")) {
				System.out.println(in[0] - in[1]);
			} else if (st[1].equals("*")) {
				System.out.println(in[0] * in[1]);
			} else if (st[1].equals("/")) {
				System.out.println(in[0] / in[1]);
			}

		}

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

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

		ArrayList<String> lines = new ArrayList<String>();

		String string = "";
		int cn = 0;
		while (true) {
			string = sc.nextLine();
			lines.add(string);
			cn++;
			if (string.contains("?")) {
				break;
			}
		}

		int[] in = new int[2];

		for (int i = 0; i < cn - 1; i++) {
			String[] st = lines.get(i).split(" ");
			in[0] = Integer.parseInt(st[0]);
			in[1] = Integer.parseInt(st[2]);

			if (st[1].equals("+")) {
				System.out.println(in[0] + in[1]);
			} else if (st[1].equals("-")) {
				System.out.println(in[0] - in[1]);
			} else if (st[1].equals("*")) {
				System.out.println(in[0] * in[1]);
			} else if (st[1].equals("/")) {
				System.out.println(in[0] / in[1]);
			}

		}

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

		ArrayList<String> lines = new ArrayList<String>();

		String string = "";
		int cn = 0;
		while (true) {
			string = sc.nextLine();
			lines.add(string);
			cn++;
			if (string.contains("?")) {
				break;
			}
		}

		int[] in = new int[2];

		for (int i = 0; i < cn - 1; i++) {
			String[] st = lines.get(i).split(" ");
			in[0] = Integer.parseInt(st[0]);
			in[1] = Integer.parseInt(st[2]);

			if (st[1].equals("+")) {
				System.out.println(in[0] + in[1]);
			} else if (st[1].equals("-")) {
				System.out.println(in[0] - in[1]);
			} else if (st[1].equals("*")) {
				System.out.println(in[0] * in[1]);
			} else if (st[1].equals("/")) {
				System.out.println(in[0] / in[1]);
			}

		}

	} main {
		Scanner sc = new Scanner(System.in);

		ArrayList<String> lines = new ArrayList<String>();

		String string = "";
		int cn = 0;
		while (true) {
			string = sc.nextLine();
			lines.add(string);
			cn++;
			if (string.contains("?")) {
				break;
			}
		}

		int[] in = new int[2];

		for (int i = 0; i < cn - 1; i++) {
			String[] st = lines.get(i).split(" ");
			in[0] = Integer.parseInt(st[0]);
			in[1] = Integer.parseInt(st[2]);

			if (st[1].equals("+")) {
				System.out.println(in[0] + in[1]);
			} else if (st[1].equals("-")) {
				System.out.println(in[0] - in[1]);
			} else if (st[1].equals("*")) {
				System.out.println(in[0] * in[1]);
			} else if (st[1].equals("/")) {
				System.out.println(in[0] / in[1]);
			}

		}

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) ArrayList<String> lines = new ArrayList<String>(); lines new ArrayList<String>() String string = ""; string "" int cn = 0; cn 0 while (true) {
			string = sc.nextLine();
			lines.add(string);
			cn++;
			if (string.contains("?")) {
				break;
			}
		} true {
			string = sc.nextLine();
			lines.add(string);
			cn++;
			if (string.contains("?")) {
				break;
			}
		} string = sc.nextLine() string sc.nextLine() sc.nextLine sc lines.add(string) lines.add lines string cn++ cn if (string.contains("?")) {
				break;
			} string.contains("?") string.contains string "?" {
				break;
			} break; int[] in = new int[2]; in new int[2] 2 for (int i = 0; i < cn - 1; i++) {
			String[] st = lines.get(i).split(" ");
			in[0] = Integer.parseInt(st[0]);
			in[1] = Integer.parseInt(st[2]);

			if (st[1].equals("+")) {
				System.out.println(in[0] + in[1]);
			} else if (st[1].equals("-")) {
				System.out.println(in[0] - in[1]);
			} else if (st[1].equals("*")) {
				System.out.println(in[0] * in[1]);
			} else if (st[1].equals("/")) {
				System.out.println(in[0] / in[1]);
			}

		} int i = 0; int i = 0; i 0 i < cn - 1 i cn - 1 cn 1 i++ i++ i {
			String[] st = lines.get(i).split(" ");
			in[0] = Integer.parseInt(st[0]);
			in[1] = Integer.parseInt(st[2]);

			if (st[1].equals("+")) {
				System.out.println(in[0] + in[1]);
			} else if (st[1].equals("-")) {
				System.out.println(in[0] - in[1]);
			} else if (st[1].equals("*")) {
				System.out.println(in[0] * in[1]);
			} else if (st[1].equals("/")) {
				System.out.println(in[0] / in[1]);
			}

		} {
			String[] st = lines.get(i).split(" ");
			in[0] = Integer.parseInt(st[0]);
			in[1] = Integer.parseInt(st[2]);

			if (st[1].equals("+")) {
				System.out.println(in[0] + in[1]);
			} else if (st[1].equals("-")) {
				System.out.println(in[0] - in[1]);
			} else if (st[1].equals("*")) {
				System.out.println(in[0] * in[1]);
			} else if (st[1].equals("/")) {
				System.out.println(in[0] / in[1]);
			}

		} String[] st = lines.get(i).split(" "); st lines.get(i).split(" ") lines.get(i).split lines.get(i) lines.get lines i " " in[0] = Integer.parseInt(st[0]) in[0] in 0 Integer.parseInt(st[0]) Integer.parseInt Integer st[0] st 0 in[1] = Integer.parseInt(st[2]) in[1] in 1 Integer.parseInt(st[2]) Integer.parseInt Integer st[2] st 2 if (st[1].equals("+")) {
				System.out.println(in[0] + in[1]);
			} else if (st[1].equals("-")) {
				System.out.println(in[0] - in[1]);
			} else if (st[1].equals("*")) {
				System.out.println(in[0] * in[1]);
			} else if (st[1].equals("/")) {
				System.out.println(in[0] / in[1]);
			} st[1].equals("+") st[1].equals st[1] st 1 "+" {
				System.out.println(in[0] + in[1]);
			} System.out.println(in[0] + in[1]) System.out.println System.out System System.out in[0] + in[1] in[0] in 0 in[1] in 1 if (st[1].equals("-")) {
				System.out.println(in[0] - in[1]);
			} else if (st[1].equals("*")) {
				System.out.println(in[0] * in[1]);
			} else if (st[1].equals("/")) {
				System.out.println(in[0] / in[1]);
			} st[1].equals("-") st[1].equals st[1] st 1 "-" {
				System.out.println(in[0] - in[1]);
			} System.out.println(in[0] - in[1]) System.out.println System.out System System.out in[0] - in[1] in[0] in 0 in[1] in 1 if (st[1].equals("*")) {
				System.out.println(in[0] * in[1]);
			} else if (st[1].equals("/")) {
				System.out.println(in[0] / in[1]);
			} st[1].equals("*") st[1].equals st[1] st 1 "*" {
				System.out.println(in[0] * in[1]);
			} System.out.println(in[0] * in[1]) System.out.println System.out System System.out in[0] * in[1] in[0] in 0 in[1] in 1 if (st[1].equals("/")) {
				System.out.println(in[0] / in[1]);
			} st[1].equals("/") st[1].equals st[1] st 1 "/" {
				System.out.println(in[0] / in[1]);
			} System.out.println(in[0] / in[1]) System.out.println System.out System System.out in[0] / in[1] in[0] in 0 in[1] in 1 String[] args args public class Main {

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

		ArrayList<String> lines = new ArrayList<String>();

		String string = "";
		int cn = 0;
		while (true) {
			string = sc.nextLine();
			lines.add(string);
			cn++;
			if (string.contains("?")) {
				break;
			}
		}

		int[] in = new int[2];

		for (int i = 0; i < cn - 1; i++) {
			String[] st = lines.get(i).split(" ");
			in[0] = Integer.parseInt(st[0]);
			in[1] = Integer.parseInt(st[2]);

			if (st[1].equals("+")) {
				System.out.println(in[0] + in[1]);
			} else if (st[1].equals("-")) {
				System.out.println(in[0] - in[1]);
			} else if (st[1].equals("*")) {
				System.out.println(in[0] * in[1]);
			} else if (st[1].equals("/")) {
				System.out.println(in[0] / in[1]);
			}

		}

	}
} public class Main {

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

		ArrayList<String> lines = new ArrayList<String>();

		String string = "";
		int cn = 0;
		while (true) {
			string = sc.nextLine();
			lines.add(string);
			cn++;
			if (string.contains("?")) {
				break;
			}
		}

		int[] in = new int[2];

		for (int i = 0; i < cn - 1; i++) {
			String[] st = lines.get(i).split(" ");
			in[0] = Integer.parseInt(st[0]);
			in[1] = Integer.parseInt(st[2]);

			if (st[1].equals("+")) {
				System.out.println(in[0] + in[1]);
			} else if (st[1].equals("-")) {
				System.out.println(in[0] - in[1]);
			} else if (st[1].equals("*")) {
				System.out.println(in[0] * in[1]);
			} else if (st[1].equals("/")) {
				System.out.println(in[0] / in[1]);
			}

		}

	}
} Main
import java.util.ArrayList;
import java.util.Scanner;

public class Main {

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

		ArrayList<String> lines = new ArrayList<String>();

		String string = "";
		int cn = 0;
		while (true) {
			string = sc.nextLine();
			lines.add(string);
			cn++;
			if (string.contains("?")) {
				break;
			}
		}

		int[] in = new int[2];

		for (int i = 0; i < cn - 1; i++) {
			String[] st = lines.get(i).split(" ");
			in[0] = Integer.parseInt(st[0]);
			in[1] = Integer.parseInt(st[2]);

			if (st[1].equals("+")) {
				System.out.println(in[0] + in[1]);
			} else if (st[1].equals("-")) {
				System.out.println(in[0] - in[1]);
			} else if (st[1].equals("*")) {
				System.out.println(in[0] * in[1]);
			} else if (st[1].equals("/")) {
				System.out.println(in[0] / in[1]);
			}

		}

	}
}