import java.io.BufferedInputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {		
		Scanner scanner = new Scanner(new BufferedInputStream(System.in));
		List<String> list = new ArrayList<String>();
		
		while(scanner.hasNext()) {
			String num = scanner.nextLine();
			String[] input = num.split(" ");
			int number1 = Integer.parseInt(input[0]);
			String op = input[1];
			int number2 = Integer.parseInt(input[2]);
			int result = 0;
			if("?" .equals(op)) {
				break;
			}else {
				if(number1 >= 0 && number1 <= 20000 && number2 >= 0 && number2 <= 20000) {
					if("+" .equals(op)) {
						result = number1+number2;
						list.add(String.valueOf(result));
					}else if("-" .equals(op)) {
						result = number1-number2;
						list.add(String.valueOf(result));
					}
					else if("*" .equals(op)) {
						result = number1*number2;
						list.add(String.valueOf(result));
					}
					else if("/" .equals(op)) {
						result = number1/number2;
						list.add(String.valueOf(result));
					}
				}
			}			
		}
		for(int i = 0; i < list.size(); i++) {
			System.out.println(list.get(i));
		}
	}
} import java.io.BufferedInputStream; BufferedInputStream java.io import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {		
		Scanner scanner = new Scanner(new BufferedInputStream(System.in));
		List<String> list = new ArrayList<String>();
		
		while(scanner.hasNext()) {
			String num = scanner.nextLine();
			String[] input = num.split(" ");
			int number1 = Integer.parseInt(input[0]);
			String op = input[1];
			int number2 = Integer.parseInt(input[2]);
			int result = 0;
			if("?" .equals(op)) {
				break;
			}else {
				if(number1 >= 0 && number1 <= 20000 && number2 >= 0 && number2 <= 20000) {
					if("+" .equals(op)) {
						result = number1+number2;
						list.add(String.valueOf(result));
					}else if("-" .equals(op)) {
						result = number1-number2;
						list.add(String.valueOf(result));
					}
					else if("*" .equals(op)) {
						result = number1*number2;
						list.add(String.valueOf(result));
					}
					else if("/" .equals(op)) {
						result = number1/number2;
						list.add(String.valueOf(result));
					}
				}
			}			
		}
		for(int i = 0; i < list.size(); i++) {
			System.out.println(list.get(i));
		}
	}
} Main public static void main(String[] args) {		
		Scanner scanner = new Scanner(new BufferedInputStream(System.in));
		List<String> list = new ArrayList<String>();
		
		while(scanner.hasNext()) {
			String num = scanner.nextLine();
			String[] input = num.split(" ");
			int number1 = Integer.parseInt(input[0]);
			String op = input[1];
			int number2 = Integer.parseInt(input[2]);
			int result = 0;
			if("?" .equals(op)) {
				break;
			}else {
				if(number1 >= 0 && number1 <= 20000 && number2 >= 0 && number2 <= 20000) {
					if("+" .equals(op)) {
						result = number1+number2;
						list.add(String.valueOf(result));
					}else if("-" .equals(op)) {
						result = number1-number2;
						list.add(String.valueOf(result));
					}
					else if("*" .equals(op)) {
						result = number1*number2;
						list.add(String.valueOf(result));
					}
					else if("/" .equals(op)) {
						result = number1/number2;
						list.add(String.valueOf(result));
					}
				}
			}			
		}
		for(int i = 0; i < list.size(); i++) {
			System.out.println(list.get(i));
		}
	} main {		
		Scanner scanner = new Scanner(new BufferedInputStream(System.in));
		List<String> list = new ArrayList<String>();
		
		while(scanner.hasNext()) {
			String num = scanner.nextLine();
			String[] input = num.split(" ");
			int number1 = Integer.parseInt(input[0]);
			String op = input[1];
			int number2 = Integer.parseInt(input[2]);
			int result = 0;
			if("?" .equals(op)) {
				break;
			}else {
				if(number1 >= 0 && number1 <= 20000 && number2 >= 0 && number2 <= 20000) {
					if("+" .equals(op)) {
						result = number1+number2;
						list.add(String.valueOf(result));
					}else if("-" .equals(op)) {
						result = number1-number2;
						list.add(String.valueOf(result));
					}
					else if("*" .equals(op)) {
						result = number1*number2;
						list.add(String.valueOf(result));
					}
					else if("/" .equals(op)) {
						result = number1/number2;
						list.add(String.valueOf(result));
					}
				}
			}			
		}
		for(int i = 0; i < list.size(); i++) {
			System.out.println(list.get(i));
		}
	} Scanner scanner = new Scanner(new BufferedInputStream(System.in)); scanner new Scanner(new BufferedInputStream(System.in)) List<String> list = new ArrayList<String>(); list new ArrayList<String>() while(scanner.hasNext()) {
			String num = scanner.nextLine();
			String[] input = num.split(" ");
			int number1 = Integer.parseInt(input[0]);
			String op = input[1];
			int number2 = Integer.parseInt(input[2]);
			int result = 0;
			if("?" .equals(op)) {
				break;
			}else {
				if(number1 >= 0 && number1 <= 20000 && number2 >= 0 && number2 <= 20000) {
					if("+" .equals(op)) {
						result = number1+number2;
						list.add(String.valueOf(result));
					}else if("-" .equals(op)) {
						result = number1-number2;
						list.add(String.valueOf(result));
					}
					else if("*" .equals(op)) {
						result = number1*number2;
						list.add(String.valueOf(result));
					}
					else if("/" .equals(op)) {
						result = number1/number2;
						list.add(String.valueOf(result));
					}
				}
			}			
		} scanner.hasNext() scanner.hasNext scanner {
			String num = scanner.nextLine();
			String[] input = num.split(" ");
			int number1 = Integer.parseInt(input[0]);
			String op = input[1];
			int number2 = Integer.parseInt(input[2]);
			int result = 0;
			if("?" .equals(op)) {
				break;
			}else {
				if(number1 >= 0 && number1 <= 20000 && number2 >= 0 && number2 <= 20000) {
					if("+" .equals(op)) {
						result = number1+number2;
						list.add(String.valueOf(result));
					}else if("-" .equals(op)) {
						result = number1-number2;
						list.add(String.valueOf(result));
					}
					else if("*" .equals(op)) {
						result = number1*number2;
						list.add(String.valueOf(result));
					}
					else if("/" .equals(op)) {
						result = number1/number2;
						list.add(String.valueOf(result));
					}
				}
			}			
		} String num = scanner.nextLine(); num scanner.nextLine() scanner.nextLine scanner String[] input = num.split(" "); input num.split(" ") num.split num " " int number1 = Integer.parseInt(input[0]); number1 Integer.parseInt(input[0]) Integer.parseInt Integer input[0] input 0 String op = input[1]; op input[1] input 1 int number2 = Integer.parseInt(input[2]); number2 Integer.parseInt(input[2]) Integer.parseInt Integer input[2] input 2 int result = 0; result 0 if("?" .equals(op)) {
				break;
			}else {
				if(number1 >= 0 && number1 <= 20000 && number2 >= 0 && number2 <= 20000) {
					if("+" .equals(op)) {
						result = number1+number2;
						list.add(String.valueOf(result));
					}else if("-" .equals(op)) {
						result = number1-number2;
						list.add(String.valueOf(result));
					}
					else if("*" .equals(op)) {
						result = number1*number2;
						list.add(String.valueOf(result));
					}
					else if("/" .equals(op)) {
						result = number1/number2;
						list.add(String.valueOf(result));
					}
				}
			} "?" .equals(op) "?" .equals "?" op {
				break;
			} break; {
				if(number1 >= 0 && number1 <= 20000 && number2 >= 0 && number2 <= 20000) {
					if("+" .equals(op)) {
						result = number1+number2;
						list.add(String.valueOf(result));
					}else if("-" .equals(op)) {
						result = number1-number2;
						list.add(String.valueOf(result));
					}
					else if("*" .equals(op)) {
						result = number1*number2;
						list.add(String.valueOf(result));
					}
					else if("/" .equals(op)) {
						result = number1/number2;
						list.add(String.valueOf(result));
					}
				}
			} if(number1 >= 0 && number1 <= 20000 && number2 >= 0 && number2 <= 20000) {
					if("+" .equals(op)) {
						result = number1+number2;
						list.add(String.valueOf(result));
					}else if("-" .equals(op)) {
						result = number1-number2;
						list.add(String.valueOf(result));
					}
					else if("*" .equals(op)) {
						result = number1*number2;
						list.add(String.valueOf(result));
					}
					else if("/" .equals(op)) {
						result = number1/number2;
						list.add(String.valueOf(result));
					}
				} number1 >= 0 && number1 <= 20000 && number2 >= 0 && number2 <= 20000 number2 >= 0 number1 >= 0 && number1 <= 20000 && number2 >= 0 && number2 <= 20000 number1 >= 0 number1 0 number1 <= 20000 number1 20000 number2 >= 0 number2 0 number2 <= 20000 number2 20000 {
					if("+" .equals(op)) {
						result = number1+number2;
						list.add(String.valueOf(result));
					}else if("-" .equals(op)) {
						result = number1-number2;
						list.add(String.valueOf(result));
					}
					else if("*" .equals(op)) {
						result = number1*number2;
						list.add(String.valueOf(result));
					}
					else if("/" .equals(op)) {
						result = number1/number2;
						list.add(String.valueOf(result));
					}
				} if("+" .equals(op)) {
						result = number1+number2;
						list.add(String.valueOf(result));
					}else if("-" .equals(op)) {
						result = number1-number2;
						list.add(String.valueOf(result));
					}
					else if("*" .equals(op)) {
						result = number1*number2;
						list.add(String.valueOf(result));
					}
					else if("/" .equals(op)) {
						result = number1/number2;
						list.add(String.valueOf(result));
					} "+" .equals(op) "+" .equals "+" op {
						result = number1+number2;
						list.add(String.valueOf(result));
					} result = number1+number2 result number1+number2 number1 number2 list.add(String.valueOf(result)) list.add list String.valueOf(result) String.valueOf String result if("-" .equals(op)) {
						result = number1-number2;
						list.add(String.valueOf(result));
					}
					else if("*" .equals(op)) {
						result = number1*number2;
						list.add(String.valueOf(result));
					}
					else if("/" .equals(op)) {
						result = number1/number2;
						list.add(String.valueOf(result));
					} "-" .equals(op) "-" .equals "-" op {
						result = number1-number2;
						list.add(String.valueOf(result));
					} result = number1-number2 result number1-number2 number1 number2 list.add(String.valueOf(result)) list.add list String.valueOf(result) String.valueOf String result if("*" .equals(op)) {
						result = number1*number2;
						list.add(String.valueOf(result));
					}
					else if("/" .equals(op)) {
						result = number1/number2;
						list.add(String.valueOf(result));
					} "*" .equals(op) "*" .equals "*" op {
						result = number1*number2;
						list.add(String.valueOf(result));
					} result = number1*number2 result number1*number2 number1 number2 list.add(String.valueOf(result)) list.add list String.valueOf(result) String.valueOf String result if("/" .equals(op)) {
						result = number1/number2;
						list.add(String.valueOf(result));
					} "/" .equals(op) "/" .equals "/" op {
						result = number1/number2;
						list.add(String.valueOf(result));
					} result = number1/number2 result number1/number2 number1 number2 list.add(String.valueOf(result)) list.add list String.valueOf(result) String.valueOf String result for(int i = 0; i < list.size(); i++) {
			System.out.println(list.get(i));
		} int i = 0; int i = 0; i 0 i < list.size() i list.size() list.size list i++ i++ i {
			System.out.println(list.get(i));
		} {
			System.out.println(list.get(i));
		} System.out.println(list.get(i)) System.out.println System.out System System.out list.get(i) list.get list i String[] args args public class Main {
	public static void main(String[] args) {		
		Scanner scanner = new Scanner(new BufferedInputStream(System.in));
		List<String> list = new ArrayList<String>();
		
		while(scanner.hasNext()) {
			String num = scanner.nextLine();
			String[] input = num.split(" ");
			int number1 = Integer.parseInt(input[0]);
			String op = input[1];
			int number2 = Integer.parseInt(input[2]);
			int result = 0;
			if("?" .equals(op)) {
				break;
			}else {
				if(number1 >= 0 && number1 <= 20000 && number2 >= 0 && number2 <= 20000) {
					if("+" .equals(op)) {
						result = number1+number2;
						list.add(String.valueOf(result));
					}else if("-" .equals(op)) {
						result = number1-number2;
						list.add(String.valueOf(result));
					}
					else if("*" .equals(op)) {
						result = number1*number2;
						list.add(String.valueOf(result));
					}
					else if("/" .equals(op)) {
						result = number1/number2;
						list.add(String.valueOf(result));
					}
				}
			}			
		}
		for(int i = 0; i < list.size(); i++) {
			System.out.println(list.get(i));
		}
	}
} public class Main {
	public static void main(String[] args) {		
		Scanner scanner = new Scanner(new BufferedInputStream(System.in));
		List<String> list = new ArrayList<String>();
		
		while(scanner.hasNext()) {
			String num = scanner.nextLine();
			String[] input = num.split(" ");
			int number1 = Integer.parseInt(input[0]);
			String op = input[1];
			int number2 = Integer.parseInt(input[2]);
			int result = 0;
			if("?" .equals(op)) {
				break;
			}else {
				if(number1 >= 0 && number1 <= 20000 && number2 >= 0 && number2 <= 20000) {
					if("+" .equals(op)) {
						result = number1+number2;
						list.add(String.valueOf(result));
					}else if("-" .equals(op)) {
						result = number1-number2;
						list.add(String.valueOf(result));
					}
					else if("*" .equals(op)) {
						result = number1*number2;
						list.add(String.valueOf(result));
					}
					else if("/" .equals(op)) {
						result = number1/number2;
						list.add(String.valueOf(result));
					}
				}
			}			
		}
		for(int i = 0; i < list.size(); i++) {
			System.out.println(list.get(i));
		}
	}
} Main
import java.io.BufferedInputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {		
		Scanner scanner = new Scanner(new BufferedInputStream(System.in));
		List<String> list = new ArrayList<String>();
		
		while(scanner.hasNext()) {
			String num = scanner.nextLine();
			String[] input = num.split(" ");
			int number1 = Integer.parseInt(input[0]);
			String op = input[1];
			int number2 = Integer.parseInt(input[2]);
			int result = 0;
			if("?" .equals(op)) {
				break;
			}else {
				if(number1 >= 0 && number1 <= 20000 && number2 >= 0 && number2 <= 20000) {
					if("+" .equals(op)) {
						result = number1+number2;
						list.add(String.valueOf(result));
					}else if("-" .equals(op)) {
						result = number1-number2;
						list.add(String.valueOf(result));
					}
					else if("*" .equals(op)) {
						result = number1*number2;
						list.add(String.valueOf(result));
					}
					else if("/" .equals(op)) {
						result = number1/number2;
						list.add(String.valueOf(result));
					}
				}
			}			
		}
		for(int i = 0; i < list.size(); i++) {
			System.out.println(list.get(i));
		}
	}
}