import java.util.Scanner;

public class Main {

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

		while(true){

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

			int result = 0;

			if(op .equals("+")){
				result = a + b;
			}else if(op.equals("-")){
				result = a - b;
			}else if(op.equals("*")){
				result = a * b;
			}else if(op.equals("/")){
				result = a / b;
			}else if(op.equals("?")){
				break;
			}
			System.out.println(result);
		}
		scan.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {

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

		while(true){

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

			int result = 0;

			if(op .equals("+")){
				result = a + b;
			}else if(op.equals("-")){
				result = a - b;
			}else if(op.equals("*")){
				result = a * b;
			}else if(op.equals("/")){
				result = a / b;
			}else if(op.equals("?")){
				break;
			}
			System.out.println(result);
		}
		scan.close();
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		while(true){

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

			int result = 0;

			if(op .equals("+")){
				result = a + b;
			}else if(op.equals("-")){
				result = a - b;
			}else if(op.equals("*")){
				result = a * b;
			}else if(op.equals("/")){
				result = a / b;
			}else if(op.equals("?")){
				break;
			}
			System.out.println(result);
		}
		scan.close();
	} main {
		Scanner scan = new Scanner(System.in);

		while(true){

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

			int result = 0;

			if(op .equals("+")){
				result = a + b;
			}else if(op.equals("-")){
				result = a - b;
			}else if(op.equals("*")){
				result = a * b;
			}else if(op.equals("/")){
				result = a / b;
			}else if(op.equals("?")){
				break;
			}
			System.out.println(result);
		}
		scan.close();
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) while(true){

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

			int result = 0;

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

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

			int result = 0;

			if(op .equals("+")){
				result = a + b;
			}else if(op.equals("-")){
				result = a - b;
			}else if(op.equals("*")){
				result = a * b;
			}else if(op.equals("/")){
				result = a / b;
			}else if(op.equals("?")){
				break;
			}
			System.out.println(result);
		} int a = Integer.parseInt(scan.next()); a Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan String op = scan.next(); op scan.next() scan.next scan int b = Integer.parseInt(scan.next()); b Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan int result = 0; result 0 if(op .equals("+")){
				result = a + b;
			}else if(op.equals("-")){
				result = a - b;
			}else if(op.equals("*")){
				result = a * b;
			}else if(op.equals("/")){
				result = a / b;
			}else if(op.equals("?")){
				break;
			} op .equals("+") op .equals op "+" {
				result = a + b;
			} result = a + b result a + b a b if(op.equals("-")){
				result = a - b;
			}else if(op.equals("*")){
				result = a * b;
			}else if(op.equals("/")){
				result = a / b;
			}else if(op.equals("?")){
				break;
			} op.equals("-") op.equals op "-" {
				result = a - b;
			} result = a - b result a - b a b if(op.equals("*")){
				result = a * b;
			}else if(op.equals("/")){
				result = a / b;
			}else if(op.equals("?")){
				break;
			} op.equals("*") op.equals op "*" {
				result = a * b;
			} result = a * b result a * b a b if(op.equals("/")){
				result = a / b;
			}else if(op.equals("?")){
				break;
			} op.equals("/") op.equals op "/" {
				result = a / b;
			} result = a / b result a / b a b if(op.equals("?")){
				break;
			} op.equals("?") op.equals op "?" {
				break;
			} break; System.out.println(result) System.out.println System.out System System.out result scan.close() scan.close scan String[] args args public class Main {

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

		while(true){

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

			int result = 0;

			if(op .equals("+")){
				result = a + b;
			}else if(op.equals("-")){
				result = a - b;
			}else if(op.equals("*")){
				result = a * b;
			}else if(op.equals("/")){
				result = a / b;
			}else if(op.equals("?")){
				break;
			}
			System.out.println(result);
		}
		scan.close();
	}
} public class Main {

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

		while(true){

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

			int result = 0;

			if(op .equals("+")){
				result = a + b;
			}else if(op.equals("-")){
				result = a - b;
			}else if(op.equals("*")){
				result = a * b;
			}else if(op.equals("/")){
				result = a / b;
			}else if(op.equals("?")){
				break;
			}
			System.out.println(result);
		}
		scan.close();
	}
} Main
import java.util.Scanner;

public class Main {

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

		while(true){

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

			int result = 0;

			if(op .equals("+")){
				result = a + b;
			}else if(op.equals("-")){
				result = a - b;
			}else if(op.equals("*")){
				result = a * b;
			}else if(op.equals("/")){
				result = a / b;
			}else if(op.equals("?")){
				break;
			}
			System.out.println(result);
		}
		scan.close();
	}
}