import java.util.Scanner;

public class Main {
	public static void main(String[] arges) {
		int[] e = new int[10000];
		int[] e2 = new int[10000];
		String[] s = new String[10000];
		Scanner sc = new Scanner(System.in);
		for (int i = 0; i < e.length; i++) {
			String line = sc.nextLine();
			String[] k = line.split(" ");

			e[i] = Integer.parseInt(k[0]);
			e2[i] = Integer.parseInt(k[2]);
			s[i] = k[1];
			if (s[i].equals("?")) {
				break;
			}
		}

		for (int i = 0; i < s.length; i++) {
			if (s[i].equals("?")) {
				break;
			}
			if (s[i].equals("+")) {
				System.out.println(e[i] + e2[i]);
			}
			if (s[i].equals("-")) {
				System.out.println(e[i] - e2[i]);
			}
			if (s[i].equals("*")) {
				System.out.println(e[i] * e2[i]);
			}
			if (s[i].equals("/")) {
				System.out.println(e[i] / e2[i]);
			}
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] arges) {
		int[] e = new int[10000];
		int[] e2 = new int[10000];
		String[] s = new String[10000];
		Scanner sc = new Scanner(System.in);
		for (int i = 0; i < e.length; i++) {
			String line = sc.nextLine();
			String[] k = line.split(" ");

			e[i] = Integer.parseInt(k[0]);
			e2[i] = Integer.parseInt(k[2]);
			s[i] = k[1];
			if (s[i].equals("?")) {
				break;
			}
		}

		for (int i = 0; i < s.length; i++) {
			if (s[i].equals("?")) {
				break;
			}
			if (s[i].equals("+")) {
				System.out.println(e[i] + e2[i]);
			}
			if (s[i].equals("-")) {
				System.out.println(e[i] - e2[i]);
			}
			if (s[i].equals("*")) {
				System.out.println(e[i] * e2[i]);
			}
			if (s[i].equals("/")) {
				System.out.println(e[i] / e2[i]);
			}
		}
	}
} Main public static void main(String[] arges) {
		int[] e = new int[10000];
		int[] e2 = new int[10000];
		String[] s = new String[10000];
		Scanner sc = new Scanner(System.in);
		for (int i = 0; i < e.length; i++) {
			String line = sc.nextLine();
			String[] k = line.split(" ");

			e[i] = Integer.parseInt(k[0]);
			e2[i] = Integer.parseInt(k[2]);
			s[i] = k[1];
			if (s[i].equals("?")) {
				break;
			}
		}

		for (int i = 0; i < s.length; i++) {
			if (s[i].equals("?")) {
				break;
			}
			if (s[i].equals("+")) {
				System.out.println(e[i] + e2[i]);
			}
			if (s[i].equals("-")) {
				System.out.println(e[i] - e2[i]);
			}
			if (s[i].equals("*")) {
				System.out.println(e[i] * e2[i]);
			}
			if (s[i].equals("/")) {
				System.out.println(e[i] / e2[i]);
			}
		}
	} main {
		int[] e = new int[10000];
		int[] e2 = new int[10000];
		String[] s = new String[10000];
		Scanner sc = new Scanner(System.in);
		for (int i = 0; i < e.length; i++) {
			String line = sc.nextLine();
			String[] k = line.split(" ");

			e[i] = Integer.parseInt(k[0]);
			e2[i] = Integer.parseInt(k[2]);
			s[i] = k[1];
			if (s[i].equals("?")) {
				break;
			}
		}

		for (int i = 0; i < s.length; i++) {
			if (s[i].equals("?")) {
				break;
			}
			if (s[i].equals("+")) {
				System.out.println(e[i] + e2[i]);
			}
			if (s[i].equals("-")) {
				System.out.println(e[i] - e2[i]);
			}
			if (s[i].equals("*")) {
				System.out.println(e[i] * e2[i]);
			}
			if (s[i].equals("/")) {
				System.out.println(e[i] / e2[i]);
			}
		}
	} int[] e = new int[10000]; e new int[10000] 10000 int[] e2 = new int[10000]; e2 new int[10000] 10000 String[] s = new String[10000]; s new String[10000] 10000 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) for (int i = 0; i < e.length; i++) {
			String line = sc.nextLine();
			String[] k = line.split(" ");

			e[i] = Integer.parseInt(k[0]);
			e2[i] = Integer.parseInt(k[2]);
			s[i] = k[1];
			if (s[i].equals("?")) {
				break;
			}
		} int i = 0; int i = 0; i 0 i < e.length i e.length e e.length i++ i++ i {
			String line = sc.nextLine();
			String[] k = line.split(" ");

			e[i] = Integer.parseInt(k[0]);
			e2[i] = Integer.parseInt(k[2]);
			s[i] = k[1];
			if (s[i].equals("?")) {
				break;
			}
		} {
			String line = sc.nextLine();
			String[] k = line.split(" ");

			e[i] = Integer.parseInt(k[0]);
			e2[i] = Integer.parseInt(k[2]);
			s[i] = k[1];
			if (s[i].equals("?")) {
				break;
			}
		} String line = sc.nextLine(); line sc.nextLine() sc.nextLine sc String[] k = line.split(" "); k line.split(" ") line.split line " " e[i] = Integer.parseInt(k[0]) e[i] e i Integer.parseInt(k[0]) Integer.parseInt Integer k[0] k 0 e2[i] = Integer.parseInt(k[2]) e2[i] e2 i Integer.parseInt(k[2]) Integer.parseInt Integer k[2] k 2 s[i] = k[1] s[i] s i k[1] k 1 if (s[i].equals("?")) {
				break;
			} s[i].equals("?") s[i].equals s[i] s i "?" {
				break;
			} break; for (int i = 0; i < s.length; i++) {
			if (s[i].equals("?")) {
				break;
			}
			if (s[i].equals("+")) {
				System.out.println(e[i] + e2[i]);
			}
			if (s[i].equals("-")) {
				System.out.println(e[i] - e2[i]);
			}
			if (s[i].equals("*")) {
				System.out.println(e[i] * e2[i]);
			}
			if (s[i].equals("/")) {
				System.out.println(e[i] / e2[i]);
			}
		} int i = 0; int i = 0; i 0 i < s.length i s.length s s.length i++ i++ i {
			if (s[i].equals("?")) {
				break;
			}
			if (s[i].equals("+")) {
				System.out.println(e[i] + e2[i]);
			}
			if (s[i].equals("-")) {
				System.out.println(e[i] - e2[i]);
			}
			if (s[i].equals("*")) {
				System.out.println(e[i] * e2[i]);
			}
			if (s[i].equals("/")) {
				System.out.println(e[i] / e2[i]);
			}
		} {
			if (s[i].equals("?")) {
				break;
			}
			if (s[i].equals("+")) {
				System.out.println(e[i] + e2[i]);
			}
			if (s[i].equals("-")) {
				System.out.println(e[i] - e2[i]);
			}
			if (s[i].equals("*")) {
				System.out.println(e[i] * e2[i]);
			}
			if (s[i].equals("/")) {
				System.out.println(e[i] / e2[i]);
			}
		} if (s[i].equals("?")) {
				break;
			} s[i].equals("?") s[i].equals s[i] s i "?" {
				break;
			} break; if (s[i].equals("+")) {
				System.out.println(e[i] + e2[i]);
			} s[i].equals("+") s[i].equals s[i] s i "+" {
				System.out.println(e[i] + e2[i]);
			} System.out.println(e[i] + e2[i]) System.out.println System.out System System.out e[i] + e2[i] e[i] e i e2[i] e2 i if (s[i].equals("-")) {
				System.out.println(e[i] - e2[i]);
			} s[i].equals("-") s[i].equals s[i] s i "-" {
				System.out.println(e[i] - e2[i]);
			} System.out.println(e[i] - e2[i]) System.out.println System.out System System.out e[i] - e2[i] e[i] e i e2[i] e2 i if (s[i].equals("*")) {
				System.out.println(e[i] * e2[i]);
			} s[i].equals("*") s[i].equals s[i] s i "*" {
				System.out.println(e[i] * e2[i]);
			} System.out.println(e[i] * e2[i]) System.out.println System.out System System.out e[i] * e2[i] e[i] e i e2[i] e2 i if (s[i].equals("/")) {
				System.out.println(e[i] / e2[i]);
			} s[i].equals("/") s[i].equals s[i] s i "/" {
				System.out.println(e[i] / e2[i]);
			} System.out.println(e[i] / e2[i]) System.out.println System.out System System.out e[i] / e2[i] e[i] e i e2[i] e2 i String[] arges arges public class Main {
	public static void main(String[] arges) {
		int[] e = new int[10000];
		int[] e2 = new int[10000];
		String[] s = new String[10000];
		Scanner sc = new Scanner(System.in);
		for (int i = 0; i < e.length; i++) {
			String line = sc.nextLine();
			String[] k = line.split(" ");

			e[i] = Integer.parseInt(k[0]);
			e2[i] = Integer.parseInt(k[2]);
			s[i] = k[1];
			if (s[i].equals("?")) {
				break;
			}
		}

		for (int i = 0; i < s.length; i++) {
			if (s[i].equals("?")) {
				break;
			}
			if (s[i].equals("+")) {
				System.out.println(e[i] + e2[i]);
			}
			if (s[i].equals("-")) {
				System.out.println(e[i] - e2[i]);
			}
			if (s[i].equals("*")) {
				System.out.println(e[i] * e2[i]);
			}
			if (s[i].equals("/")) {
				System.out.println(e[i] / e2[i]);
			}
		}
	}
} public class Main {
	public static void main(String[] arges) {
		int[] e = new int[10000];
		int[] e2 = new int[10000];
		String[] s = new String[10000];
		Scanner sc = new Scanner(System.in);
		for (int i = 0; i < e.length; i++) {
			String line = sc.nextLine();
			String[] k = line.split(" ");

			e[i] = Integer.parseInt(k[0]);
			e2[i] = Integer.parseInt(k[2]);
			s[i] = k[1];
			if (s[i].equals("?")) {
				break;
			}
		}

		for (int i = 0; i < s.length; i++) {
			if (s[i].equals("?")) {
				break;
			}
			if (s[i].equals("+")) {
				System.out.println(e[i] + e2[i]);
			}
			if (s[i].equals("-")) {
				System.out.println(e[i] - e2[i]);
			}
			if (s[i].equals("*")) {
				System.out.println(e[i] * e2[i]);
			}
			if (s[i].equals("/")) {
				System.out.println(e[i] / e2[i]);
			}
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] arges) {
		int[] e = new int[10000];
		int[] e2 = new int[10000];
		String[] s = new String[10000];
		Scanner sc = new Scanner(System.in);
		for (int i = 0; i < e.length; i++) {
			String line = sc.nextLine();
			String[] k = line.split(" ");

			e[i] = Integer.parseInt(k[0]);
			e2[i] = Integer.parseInt(k[2]);
			s[i] = k[1];
			if (s[i].equals("?")) {
				break;
			}
		}

		for (int i = 0; i < s.length; i++) {
			if (s[i].equals("?")) {
				break;
			}
			if (s[i].equals("+")) {
				System.out.println(e[i] + e2[i]);
			}
			if (s[i].equals("-")) {
				System.out.println(e[i] - e2[i]);
			}
			if (s[i].equals("*")) {
				System.out.println(e[i] * e2[i]);
			}
			if (s[i].equals("/")) {
				System.out.println(e[i] / e2[i]);
			}
		}
	}
}