import java.util.*;

public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		List<Integer> answers = new ArrayList<Integer>();
		for(;;){
			String line = scan.nextLine();
			String[] div = line.split("\\s");
			int a = Integer.parseInt(div[0]);
			String op = div[1];
			int b = Integer.parseInt(div[2]);
			if(op.equals("?")){
				break;
			}
			int ans = 0;
			switch(op){
				case "+" :
					ans = a + b;
					answers.add(ans);
					break;
				case "-" :
					ans = a - b;
					answers.add(ans);
					break;
				case "*" :
					ans = a * b;
					answers.add(ans);
					break;
				case "/" :
					ans = a / b;
					answers.add(ans);
					break;
				default :
					break;
			}
		}

		for(int n : answers){
			System.out.println(n);
		}
		
	}
} import java.util.*; util.* java public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		List<Integer> answers = new ArrayList<Integer>();
		for(;;){
			String line = scan.nextLine();
			String[] div = line.split("\\s");
			int a = Integer.parseInt(div[0]);
			String op = div[1];
			int b = Integer.parseInt(div[2]);
			if(op.equals("?")){
				break;
			}
			int ans = 0;
			switch(op){
				case "+" :
					ans = a + b;
					answers.add(ans);
					break;
				case "-" :
					ans = a - b;
					answers.add(ans);
					break;
				case "*" :
					ans = a * b;
					answers.add(ans);
					break;
				case "/" :
					ans = a / b;
					answers.add(ans);
					break;
				default :
					break;
			}
		}

		for(int n : answers){
			System.out.println(n);
		}
		
	}
} Main public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		List<Integer> answers = new ArrayList<Integer>();
		for(;;){
			String line = scan.nextLine();
			String[] div = line.split("\\s");
			int a = Integer.parseInt(div[0]);
			String op = div[1];
			int b = Integer.parseInt(div[2]);
			if(op.equals("?")){
				break;
			}
			int ans = 0;
			switch(op){
				case "+" :
					ans = a + b;
					answers.add(ans);
					break;
				case "-" :
					ans = a - b;
					answers.add(ans);
					break;
				case "*" :
					ans = a * b;
					answers.add(ans);
					break;
				case "/" :
					ans = a / b;
					answers.add(ans);
					break;
				default :
					break;
			}
		}

		for(int n : answers){
			System.out.println(n);
		}
		
	} main {
		Scanner scan = new Scanner(System.in);
		List<Integer> answers = new ArrayList<Integer>();
		for(;;){
			String line = scan.nextLine();
			String[] div = line.split("\\s");
			int a = Integer.parseInt(div[0]);
			String op = div[1];
			int b = Integer.parseInt(div[2]);
			if(op.equals("?")){
				break;
			}
			int ans = 0;
			switch(op){
				case "+" :
					ans = a + b;
					answers.add(ans);
					break;
				case "-" :
					ans = a - b;
					answers.add(ans);
					break;
				case "*" :
					ans = a * b;
					answers.add(ans);
					break;
				case "/" :
					ans = a / b;
					answers.add(ans);
					break;
				default :
					break;
			}
		}

		for(int n : answers){
			System.out.println(n);
		}
		
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) List<Integer> answers = new ArrayList<Integer>(); answers new ArrayList<Integer>() for(;;){
			String line = scan.nextLine();
			String[] div = line.split("\\s");
			int a = Integer.parseInt(div[0]);
			String op = div[1];
			int b = Integer.parseInt(div[2]);
			if(op.equals("?")){
				break;
			}
			int ans = 0;
			switch(op){
				case "+" :
					ans = a + b;
					answers.add(ans);
					break;
				case "-" :
					ans = a - b;
					answers.add(ans);
					break;
				case "*" :
					ans = a * b;
					answers.add(ans);
					break;
				case "/" :
					ans = a / b;
					answers.add(ans);
					break;
				default :
					break;
			}
		} ; {
			String line = scan.nextLine();
			String[] div = line.split("\\s");
			int a = Integer.parseInt(div[0]);
			String op = div[1];
			int b = Integer.parseInt(div[2]);
			if(op.equals("?")){
				break;
			}
			int ans = 0;
			switch(op){
				case "+" :
					ans = a + b;
					answers.add(ans);
					break;
				case "-" :
					ans = a - b;
					answers.add(ans);
					break;
				case "*" :
					ans = a * b;
					answers.add(ans);
					break;
				case "/" :
					ans = a / b;
					answers.add(ans);
					break;
				default :
					break;
			}
		} {
			String line = scan.nextLine();
			String[] div = line.split("\\s");
			int a = Integer.parseInt(div[0]);
			String op = div[1];
			int b = Integer.parseInt(div[2]);
			if(op.equals("?")){
				break;
			}
			int ans = 0;
			switch(op){
				case "+" :
					ans = a + b;
					answers.add(ans);
					break;
				case "-" :
					ans = a - b;
					answers.add(ans);
					break;
				case "*" :
					ans = a * b;
					answers.add(ans);
					break;
				case "/" :
					ans = a / b;
					answers.add(ans);
					break;
				default :
					break;
			}
		} String line = scan.nextLine(); line scan.nextLine() scan.nextLine scan String[] div = line.split("\\s"); div line.split("\\s") line.split line "\\s" int a = Integer.parseInt(div[0]); a Integer.parseInt(div[0]) Integer.parseInt Integer div[0] div 0 String op = div[1]; op div[1] div 1 int b = Integer.parseInt(div[2]); b Integer.parseInt(div[2]) Integer.parseInt Integer div[2] div 2 if(op.equals("?")){
				break;
			} op.equals("?") op.equals op "?" {
				break;
			} break; int ans = 0; ans 0 switch(op){
				case "+" :
					ans = a + b;
					answers.add(ans);
					break;
				case "-" :
					ans = a - b;
					answers.add(ans);
					break;
				case "*" :
					ans = a * b;
					answers.add(ans);
					break;
				case "/" :
					ans = a / b;
					answers.add(ans);
					break;
				default :
					break;
			} op case "+" : "+" case "+" : ans = a + b ans a + b a b answers.add(ans) answers.add answers ans break; case "-" : "-" case "-" : ans = a - b ans a - b a b answers.add(ans) answers.add answers ans break; case "*" : "*" case "*" : ans = a * b ans a * b a b answers.add(ans) answers.add answers ans break; case "/" : "/" case "/" : ans = a / b ans a / b a b answers.add(ans) answers.add answers ans break; default : default : break; for(int n : answers){
			System.out.println(n);
		} int n answers {
			System.out.println(n);
		} {
			System.out.println(n);
		} System.out.println(n) System.out.println System.out System System.out n String[] args args public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		List<Integer> answers = new ArrayList<Integer>();
		for(;;){
			String line = scan.nextLine();
			String[] div = line.split("\\s");
			int a = Integer.parseInt(div[0]);
			String op = div[1];
			int b = Integer.parseInt(div[2]);
			if(op.equals("?")){
				break;
			}
			int ans = 0;
			switch(op){
				case "+" :
					ans = a + b;
					answers.add(ans);
					break;
				case "-" :
					ans = a - b;
					answers.add(ans);
					break;
				case "*" :
					ans = a * b;
					answers.add(ans);
					break;
				case "/" :
					ans = a / b;
					answers.add(ans);
					break;
				default :
					break;
			}
		}

		for(int n : answers){
			System.out.println(n);
		}
		
	}
} public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		List<Integer> answers = new ArrayList<Integer>();
		for(;;){
			String line = scan.nextLine();
			String[] div = line.split("\\s");
			int a = Integer.parseInt(div[0]);
			String op = div[1];
			int b = Integer.parseInt(div[2]);
			if(op.equals("?")){
				break;
			}
			int ans = 0;
			switch(op){
				case "+" :
					ans = a + b;
					answers.add(ans);
					break;
				case "-" :
					ans = a - b;
					answers.add(ans);
					break;
				case "*" :
					ans = a * b;
					answers.add(ans);
					break;
				case "/" :
					ans = a / b;
					answers.add(ans);
					break;
				default :
					break;
			}
		}

		for(int n : answers){
			System.out.println(n);
		}
		
	}
} Main
import java.util.*;

public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		List<Integer> answers = new ArrayList<Integer>();
		for(;;){
			String line = scan.nextLine();
			String[] div = line.split("\\s");
			int a = Integer.parseInt(div[0]);
			String op = div[1];
			int b = Integer.parseInt(div[2]);
			if(op.equals("?")){
				break;
			}
			int ans = 0;
			switch(op){
				case "+" :
					ans = a + b;
					answers.add(ans);
					break;
				case "-" :
					ans = a - b;
					answers.add(ans);
					break;
				case "*" :
					ans = a * b;
					answers.add(ans);
					break;
				case "/" :
					ans = a / b;
					answers.add(ans);
					break;
				default :
					break;
			}
		}

		for(int n : answers){
			System.out.println(n);
		}
		
	}
}