import java.util.*;

public class Main {
	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		ArrayList<Integer> al = new ArrayList<>();

		int result = 0;
		int cnt = 0;
		
		int a = 0;
		int b = 0;
		String op = "a";
		while(!(op.equals("?"))) {
			a = sc.nextInt();
			op = sc.next();
			b = sc.nextInt();
			if(op.equals("?")) {
				break;
			} else if(op.equals("+")) {
				result = a + b;
				al.add(result);
				cnt++;
			} else if(op.equals("-")) {
				result = a - b;
				al.add(result);
				cnt++;
			} else if(op.equals("*")) {
				result = a * b;
				al.add(result);
				cnt++;
			} else if(op.equals("/")) {
				result = a / b;
				al.add(result);
				cnt++;
			}
		}
		
		for(int i = 0; i < cnt; i++) {
			System.out.println(al.get(i));
		}
		
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		ArrayList<Integer> al = new ArrayList<>();

		int result = 0;
		int cnt = 0;
		
		int a = 0;
		int b = 0;
		String op = "a";
		while(!(op.equals("?"))) {
			a = sc.nextInt();
			op = sc.next();
			b = sc.nextInt();
			if(op.equals("?")) {
				break;
			} else if(op.equals("+")) {
				result = a + b;
				al.add(result);
				cnt++;
			} else if(op.equals("-")) {
				result = a - b;
				al.add(result);
				cnt++;
			} else if(op.equals("*")) {
				result = a * b;
				al.add(result);
				cnt++;
			} else if(op.equals("/")) {
				result = a / b;
				al.add(result);
				cnt++;
			}
		}
		
		for(int i = 0; i < cnt; i++) {
			System.out.println(al.get(i));
		}
		
	}
} Main public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		ArrayList<Integer> al = new ArrayList<>();

		int result = 0;
		int cnt = 0;
		
		int a = 0;
		int b = 0;
		String op = "a";
		while(!(op.equals("?"))) {
			a = sc.nextInt();
			op = sc.next();
			b = sc.nextInt();
			if(op.equals("?")) {
				break;
			} else if(op.equals("+")) {
				result = a + b;
				al.add(result);
				cnt++;
			} else if(op.equals("-")) {
				result = a - b;
				al.add(result);
				cnt++;
			} else if(op.equals("*")) {
				result = a * b;
				al.add(result);
				cnt++;
			} else if(op.equals("/")) {
				result = a / b;
				al.add(result);
				cnt++;
			}
		}
		
		for(int i = 0; i < cnt; i++) {
			System.out.println(al.get(i));
		}
		
	} main {
		
		Scanner sc = new Scanner(System.in);
		ArrayList<Integer> al = new ArrayList<>();

		int result = 0;
		int cnt = 0;
		
		int a = 0;
		int b = 0;
		String op = "a";
		while(!(op.equals("?"))) {
			a = sc.nextInt();
			op = sc.next();
			b = sc.nextInt();
			if(op.equals("?")) {
				break;
			} else if(op.equals("+")) {
				result = a + b;
				al.add(result);
				cnt++;
			} else if(op.equals("-")) {
				result = a - b;
				al.add(result);
				cnt++;
			} else if(op.equals("*")) {
				result = a * b;
				al.add(result);
				cnt++;
			} else if(op.equals("/")) {
				result = a / b;
				al.add(result);
				cnt++;
			}
		}
		
		for(int i = 0; i < cnt; i++) {
			System.out.println(al.get(i));
		}
		
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) ArrayList<Integer> al = new ArrayList<>(); al new ArrayList<>() int result = 0; result 0 int cnt = 0; cnt 0 int a = 0; a 0 int b = 0; b 0 String op = "a"; op "a" while(!(op.equals("?"))) {
			a = sc.nextInt();
			op = sc.next();
			b = sc.nextInt();
			if(op.equals("?")) {
				break;
			} else if(op.equals("+")) {
				result = a + b;
				al.add(result);
				cnt++;
			} else if(op.equals("-")) {
				result = a - b;
				al.add(result);
				cnt++;
			} else if(op.equals("*")) {
				result = a * b;
				al.add(result);
				cnt++;
			} else if(op.equals("/")) {
				result = a / b;
				al.add(result);
				cnt++;
			}
		} !(op.equals("?")) (op.equals("?")) op.equals op "?" {
			a = sc.nextInt();
			op = sc.next();
			b = sc.nextInt();
			if(op.equals("?")) {
				break;
			} else if(op.equals("+")) {
				result = a + b;
				al.add(result);
				cnt++;
			} else if(op.equals("-")) {
				result = a - b;
				al.add(result);
				cnt++;
			} else if(op.equals("*")) {
				result = a * b;
				al.add(result);
				cnt++;
			} else if(op.equals("/")) {
				result = a / b;
				al.add(result);
				cnt++;
			}
		} a = sc.nextInt() a sc.nextInt() sc.nextInt sc op = sc.next() op sc.next() sc.next sc b = sc.nextInt() b sc.nextInt() sc.nextInt sc if(op.equals("?")) {
				break;
			} else if(op.equals("+")) {
				result = a + b;
				al.add(result);
				cnt++;
			} else if(op.equals("-")) {
				result = a - b;
				al.add(result);
				cnt++;
			} else if(op.equals("*")) {
				result = a * b;
				al.add(result);
				cnt++;
			} else if(op.equals("/")) {
				result = a / b;
				al.add(result);
				cnt++;
			} op.equals("?") op.equals op "?" {
				break;
			} break; if(op.equals("+")) {
				result = a + b;
				al.add(result);
				cnt++;
			} else if(op.equals("-")) {
				result = a - b;
				al.add(result);
				cnt++;
			} else if(op.equals("*")) {
				result = a * b;
				al.add(result);
				cnt++;
			} else if(op.equals("/")) {
				result = a / b;
				al.add(result);
				cnt++;
			} op.equals("+") op.equals op "+" {
				result = a + b;
				al.add(result);
				cnt++;
			} result = a + b result a + b a b al.add(result) al.add al result cnt++ cnt if(op.equals("-")) {
				result = a - b;
				al.add(result);
				cnt++;
			} else if(op.equals("*")) {
				result = a * b;
				al.add(result);
				cnt++;
			} else if(op.equals("/")) {
				result = a / b;
				al.add(result);
				cnt++;
			} op.equals("-") op.equals op "-" {
				result = a - b;
				al.add(result);
				cnt++;
			} result = a - b result a - b a b al.add(result) al.add al result cnt++ cnt if(op.equals("*")) {
				result = a * b;
				al.add(result);
				cnt++;
			} else if(op.equals("/")) {
				result = a / b;
				al.add(result);
				cnt++;
			} op.equals("*") op.equals op "*" {
				result = a * b;
				al.add(result);
				cnt++;
			} result = a * b result a * b a b al.add(result) al.add al result cnt++ cnt if(op.equals("/")) {
				result = a / b;
				al.add(result);
				cnt++;
			} op.equals("/") op.equals op "/" {
				result = a / b;
				al.add(result);
				cnt++;
			} result = a / b result a / b a b al.add(result) al.add al result cnt++ cnt for(int i = 0; i < cnt; i++) {
			System.out.println(al.get(i));
		} int i = 0; int i = 0; i 0 i < cnt i cnt i++ i++ i {
			System.out.println(al.get(i));
		} {
			System.out.println(al.get(i));
		} System.out.println(al.get(i)) System.out.println System.out System System.out al.get(i) al.get al i String[] args args public class Main {
	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		ArrayList<Integer> al = new ArrayList<>();

		int result = 0;
		int cnt = 0;
		
		int a = 0;
		int b = 0;
		String op = "a";
		while(!(op.equals("?"))) {
			a = sc.nextInt();
			op = sc.next();
			b = sc.nextInt();
			if(op.equals("?")) {
				break;
			} else if(op.equals("+")) {
				result = a + b;
				al.add(result);
				cnt++;
			} else if(op.equals("-")) {
				result = a - b;
				al.add(result);
				cnt++;
			} else if(op.equals("*")) {
				result = a * b;
				al.add(result);
				cnt++;
			} else if(op.equals("/")) {
				result = a / b;
				al.add(result);
				cnt++;
			}
		}
		
		for(int i = 0; i < cnt; i++) {
			System.out.println(al.get(i));
		}
		
	}
} public class Main {
	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		ArrayList<Integer> al = new ArrayList<>();

		int result = 0;
		int cnt = 0;
		
		int a = 0;
		int b = 0;
		String op = "a";
		while(!(op.equals("?"))) {
			a = sc.nextInt();
			op = sc.next();
			b = sc.nextInt();
			if(op.equals("?")) {
				break;
			} else if(op.equals("+")) {
				result = a + b;
				al.add(result);
				cnt++;
			} else if(op.equals("-")) {
				result = a - b;
				al.add(result);
				cnt++;
			} else if(op.equals("*")) {
				result = a * b;
				al.add(result);
				cnt++;
			} else if(op.equals("/")) {
				result = a / b;
				al.add(result);
				cnt++;
			}
		}
		
		for(int i = 0; i < cnt; i++) {
			System.out.println(al.get(i));
		}
		
	}
} Main
import java.util.*;

public class Main {
	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		ArrayList<Integer> al = new ArrayList<>();

		int result = 0;
		int cnt = 0;
		
		int a = 0;
		int b = 0;
		String op = "a";
		while(!(op.equals("?"))) {
			a = sc.nextInt();
			op = sc.next();
			b = sc.nextInt();
			if(op.equals("?")) {
				break;
			} else if(op.equals("+")) {
				result = a + b;
				al.add(result);
				cnt++;
			} else if(op.equals("-")) {
				result = a - b;
				al.add(result);
				cnt++;
			} else if(op.equals("*")) {
				result = a * b;
				al.add(result);
				cnt++;
			} else if(op.equals("/")) {
				result = a / b;
				al.add(result);
				cnt++;
			}
		}
		
		for(int i = 0; i < cnt; i++) {
			System.out.println(al.get(i));
		}
		
	}
}