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

class Main{

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

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();

		while(true){

			String[] token = br.readLine().split(" ");
			int a = Integer.parseInt(token[0]);
			char op = token[1].charAt(0);
			int b = Integer.parseInt(token[2]);

			if(op == '?'){
				break;
			}

			if(op == '+'){
				sb.append((a + b) + "\n");
			}else if(op == '-'){
				sb.append((a - b) + "\n");
			}else if(op == '*'){
				sb.append((a * b) + "\n");
			}else if(op == '/'){
				sb.append((a / b) + "\n");
			}

		}

		System.out.print(sb);

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

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

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();

		while(true){

			String[] token = br.readLine().split(" ");
			int a = Integer.parseInt(token[0]);
			char op = token[1].charAt(0);
			int b = Integer.parseInt(token[2]);

			if(op == '?'){
				break;
			}

			if(op == '+'){
				sb.append((a + b) + "\n");
			}else if(op == '-'){
				sb.append((a - b) + "\n");
			}else if(op == '*'){
				sb.append((a * b) + "\n");
			}else if(op == '/'){
				sb.append((a / b) + "\n");
			}

		}

		System.out.print(sb);

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

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();

		while(true){

			String[] token = br.readLine().split(" ");
			int a = Integer.parseInt(token[0]);
			char op = token[1].charAt(0);
			int b = Integer.parseInt(token[2]);

			if(op == '?'){
				break;
			}

			if(op == '+'){
				sb.append((a + b) + "\n");
			}else if(op == '-'){
				sb.append((a - b) + "\n");
			}else if(op == '*'){
				sb.append((a * b) + "\n");
			}else if(op == '/'){
				sb.append((a / b) + "\n");
			}

		}

		System.out.print(sb);

	} main {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();

		while(true){

			String[] token = br.readLine().split(" ");
			int a = Integer.parseInt(token[0]);
			char op = token[1].charAt(0);
			int b = Integer.parseInt(token[2]);

			if(op == '?'){
				break;
			}

			if(op == '+'){
				sb.append((a + b) + "\n");
			}else if(op == '-'){
				sb.append((a - b) + "\n");
			}else if(op == '*'){
				sb.append((a * b) + "\n");
			}else if(op == '/'){
				sb.append((a / b) + "\n");
			}

		}

		System.out.print(sb);

	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) StringBuilder sb = new StringBuilder(); sb new StringBuilder() while(true){

			String[] token = br.readLine().split(" ");
			int a = Integer.parseInt(token[0]);
			char op = token[1].charAt(0);
			int b = Integer.parseInt(token[2]);

			if(op == '?'){
				break;
			}

			if(op == '+'){
				sb.append((a + b) + "\n");
			}else if(op == '-'){
				sb.append((a - b) + "\n");
			}else if(op == '*'){
				sb.append((a * b) + "\n");
			}else if(op == '/'){
				sb.append((a / b) + "\n");
			}

		} true {

			String[] token = br.readLine().split(" ");
			int a = Integer.parseInt(token[0]);
			char op = token[1].charAt(0);
			int b = Integer.parseInt(token[2]);

			if(op == '?'){
				break;
			}

			if(op == '+'){
				sb.append((a + b) + "\n");
			}else if(op == '-'){
				sb.append((a - b) + "\n");
			}else if(op == '*'){
				sb.append((a * b) + "\n");
			}else if(op == '/'){
				sb.append((a / b) + "\n");
			}

		} String[] token = br.readLine().split(" "); token br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int a = Integer.parseInt(token[0]); a Integer.parseInt(token[0]) Integer.parseInt Integer token[0] token 0 char op = token[1].charAt(0); op token[1].charAt(0) token[1].charAt token[1] token 1 0 int b = Integer.parseInt(token[2]); b Integer.parseInt(token[2]) Integer.parseInt Integer token[2] token 2 if(op == '?'){
				break;
			} op == '?' op '?' {
				break;
			} break; if(op == '+'){
				sb.append((a + b) + "\n");
			}else if(op == '-'){
				sb.append((a - b) + "\n");
			}else if(op == '*'){
				sb.append((a * b) + "\n");
			}else if(op == '/'){
				sb.append((a / b) + "\n");
			} op == '+' op '+' {
				sb.append((a + b) + "\n");
			} sb.append((a + b) + "\n") sb.append sb (a + b) + "\n" (a + b) a b "\n" if(op == '-'){
				sb.append((a - b) + "\n");
			}else if(op == '*'){
				sb.append((a * b) + "\n");
			}else if(op == '/'){
				sb.append((a / b) + "\n");
			} op == '-' op '-' {
				sb.append((a - b) + "\n");
			} sb.append((a - b) + "\n") sb.append sb (a - b) + "\n" (a - b) a b "\n" if(op == '*'){
				sb.append((a * b) + "\n");
			}else if(op == '/'){
				sb.append((a / b) + "\n");
			} op == '*' op '*' {
				sb.append((a * b) + "\n");
			} sb.append((a * b) + "\n") sb.append sb (a * b) + "\n" (a * b) a b "\n" if(op == '/'){
				sb.append((a / b) + "\n");
			} op == '/' op '/' {
				sb.append((a / b) + "\n");
			} sb.append((a / b) + "\n") sb.append sb (a / b) + "\n" (a / b) a b "\n" System.out.print(sb) System.out.print System.out System System.out sb String[] args args
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

class Main{

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

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();

		while(true){

			String[] token = br.readLine().split(" ");
			int a = Integer.parseInt(token[0]);
			char op = token[1].charAt(0);
			int b = Integer.parseInt(token[2]);

			if(op == '?'){
				break;
			}

			if(op == '+'){
				sb.append((a + b) + "\n");
			}else if(op == '-'){
				sb.append((a - b) + "\n");
			}else if(op == '*'){
				sb.append((a * b) + "\n");
			}else if(op == '/'){
				sb.append((a / b) + "\n");
			}

		}

		System.out.print(sb);

	}
}