import java.util.Scanner;

class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		
		while (true) {
			int a = scanner.nextInt();
			char op = scanner.next().charAt(0);
			int b = scanner.nextInt();
			
			if (op == '?') break;
			
			int ans;
			
			switch (op) {
			case '+':
				ans = a + b;
				break;
				
			case '-':
				ans = a - b;
				break;
			case '*':
				ans = a * b;
				break;
			case '/':
				ans = a / b;
				break;
			default:
				ans = 0;
				break;
			}
			
			System.out.println(ans);
		}

	}

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

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		
		while (true) {
			int a = scanner.nextInt();
			char op = scanner.next().charAt(0);
			int b = scanner.nextInt();
			
			if (op == '?') break;
			
			int ans;
			
			switch (op) {
			case '+':
				ans = a + b;
				break;
				
			case '-':
				ans = a - b;
				break;
			case '*':
				ans = a * b;
				break;
			case '/':
				ans = a / b;
				break;
			default:
				ans = 0;
				break;
			}
			
			System.out.println(ans);
		}

	}

} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		
		while (true) {
			int a = scanner.nextInt();
			char op = scanner.next().charAt(0);
			int b = scanner.nextInt();
			
			if (op == '?') break;
			
			int ans;
			
			switch (op) {
			case '+':
				ans = a + b;
				break;
				
			case '-':
				ans = a - b;
				break;
			case '*':
				ans = a * b;
				break;
			case '/':
				ans = a / b;
				break;
			default:
				ans = 0;
				break;
			}
			
			System.out.println(ans);
		}

	} main {
		Scanner scanner = new Scanner(System.in);
		
		while (true) {
			int a = scanner.nextInt();
			char op = scanner.next().charAt(0);
			int b = scanner.nextInt();
			
			if (op == '?') break;
			
			int ans;
			
			switch (op) {
			case '+':
				ans = a + b;
				break;
				
			case '-':
				ans = a - b;
				break;
			case '*':
				ans = a * b;
				break;
			case '/':
				ans = a / b;
				break;
			default:
				ans = 0;
				break;
			}
			
			System.out.println(ans);
		}

	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) while (true) {
			int a = scanner.nextInt();
			char op = scanner.next().charAt(0);
			int b = scanner.nextInt();
			
			if (op == '?') break;
			
			int ans;
			
			switch (op) {
			case '+':
				ans = a + b;
				break;
				
			case '-':
				ans = a - b;
				break;
			case '*':
				ans = a * b;
				break;
			case '/':
				ans = a / b;
				break;
			default:
				ans = 0;
				break;
			}
			
			System.out.println(ans);
		} true {
			int a = scanner.nextInt();
			char op = scanner.next().charAt(0);
			int b = scanner.nextInt();
			
			if (op == '?') break;
			
			int ans;
			
			switch (op) {
			case '+':
				ans = a + b;
				break;
				
			case '-':
				ans = a - b;
				break;
			case '*':
				ans = a * b;
				break;
			case '/':
				ans = a / b;
				break;
			default:
				ans = 0;
				break;
			}
			
			System.out.println(ans);
		} int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner char op = scanner.next().charAt(0); op scanner.next().charAt(0) scanner.next().charAt scanner.next() scanner.next scanner 0 int b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner if (op == '?') break; op == '?' op '?' break; int ans; ans switch (op) {
			case '+':
				ans = a + b;
				break;
				
			case '-':
				ans = a - b;
				break;
			case '*':
				ans = a * b;
				break;
			case '/':
				ans = a / b;
				break;
			default:
				ans = 0;
				break;
			} op case '+': '+' case '+': ans = a + b ans a + b a b break; case '-': '-' case '-': ans = a - b ans a - b a b break; case '*': '*' case '*': ans = a * b ans a * b a b break; case '/': '/' case '/': ans = a / b ans a / b a b break; default: default: ans = 0 ans 0 break; System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.Scanner;

class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		
		while (true) {
			int a = scanner.nextInt();
			char op = scanner.next().charAt(0);
			int b = scanner.nextInt();
			
			if (op == '?') break;
			
			int ans;
			
			switch (op) {
			case '+':
				ans = a + b;
				break;
				
			case '-':
				ans = a - b;
				break;
			case '*':
				ans = a * b;
				break;
			case '/':
				ans = a / b;
				break;
			default:
				ans = 0;
				break;
			}
			
			System.out.println(ans);
		}

	}

}

