import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner in = new Scanner(System.in);		
		String str = in.nextLine();
		String[] ary = str.split(" ");
		char c = ary[1].charAt(0);
		
		while(c != '?'){
			int a = Integer.parseInt(ary[0]);
			int b = Integer.parseInt(ary[2]);
			
			switch(c){
			case '+':
				System.out.println(a+b);
				break;
			case '-':
				System.out.println(a-b);
				break;
			case '*':
				System.out.println(a*b);
				break;
			case '/':
				System.out.println(a/b);
				break;
				default:
					break;
			}
			
			str = in.nextLine();
			String[] ary2 = str.split(" ");
			for(int i=0; i<3; i++){
				ary[i] = ary2[i];
			}
			c = ary[1].charAt(0);
		}
		in.close();
	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args){
		Scanner in = new Scanner(System.in);		
		String str = in.nextLine();
		String[] ary = str.split(" ");
		char c = ary[1].charAt(0);
		
		while(c != '?'){
			int a = Integer.parseInt(ary[0]);
			int b = Integer.parseInt(ary[2]);
			
			switch(c){
			case '+':
				System.out.println(a+b);
				break;
			case '-':
				System.out.println(a-b);
				break;
			case '*':
				System.out.println(a*b);
				break;
			case '/':
				System.out.println(a/b);
				break;
				default:
					break;
			}
			
			str = in.nextLine();
			String[] ary2 = str.split(" ");
			for(int i=0; i<3; i++){
				ary[i] = ary2[i];
			}
			c = ary[1].charAt(0);
		}
		in.close();
	}
} Main public static void main(String[] args){
		Scanner in = new Scanner(System.in);		
		String str = in.nextLine();
		String[] ary = str.split(" ");
		char c = ary[1].charAt(0);
		
		while(c != '?'){
			int a = Integer.parseInt(ary[0]);
			int b = Integer.parseInt(ary[2]);
			
			switch(c){
			case '+':
				System.out.println(a+b);
				break;
			case '-':
				System.out.println(a-b);
				break;
			case '*':
				System.out.println(a*b);
				break;
			case '/':
				System.out.println(a/b);
				break;
				default:
					break;
			}
			
			str = in.nextLine();
			String[] ary2 = str.split(" ");
			for(int i=0; i<3; i++){
				ary[i] = ary2[i];
			}
			c = ary[1].charAt(0);
		}
		in.close();
	} main {
		Scanner in = new Scanner(System.in);		
		String str = in.nextLine();
		String[] ary = str.split(" ");
		char c = ary[1].charAt(0);
		
		while(c != '?'){
			int a = Integer.parseInt(ary[0]);
			int b = Integer.parseInt(ary[2]);
			
			switch(c){
			case '+':
				System.out.println(a+b);
				break;
			case '-':
				System.out.println(a-b);
				break;
			case '*':
				System.out.println(a*b);
				break;
			case '/':
				System.out.println(a/b);
				break;
				default:
					break;
			}
			
			str = in.nextLine();
			String[] ary2 = str.split(" ");
			for(int i=0; i<3; i++){
				ary[i] = ary2[i];
			}
			c = ary[1].charAt(0);
		}
		in.close();
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) String str = in.nextLine(); str in.nextLine() in.nextLine in String[] ary = str.split(" "); ary str.split(" ") str.split str " " char c = ary[1].charAt(0); c ary[1].charAt(0) ary[1].charAt ary[1] ary 1 0 while(c != '?'){
			int a = Integer.parseInt(ary[0]);
			int b = Integer.parseInt(ary[2]);
			
			switch(c){
			case '+':
				System.out.println(a+b);
				break;
			case '-':
				System.out.println(a-b);
				break;
			case '*':
				System.out.println(a*b);
				break;
			case '/':
				System.out.println(a/b);
				break;
				default:
					break;
			}
			
			str = in.nextLine();
			String[] ary2 = str.split(" ");
			for(int i=0; i<3; i++){
				ary[i] = ary2[i];
			}
			c = ary[1].charAt(0);
		} c != '?' c '?' {
			int a = Integer.parseInt(ary[0]);
			int b = Integer.parseInt(ary[2]);
			
			switch(c){
			case '+':
				System.out.println(a+b);
				break;
			case '-':
				System.out.println(a-b);
				break;
			case '*':
				System.out.println(a*b);
				break;
			case '/':
				System.out.println(a/b);
				break;
				default:
					break;
			}
			
			str = in.nextLine();
			String[] ary2 = str.split(" ");
			for(int i=0; i<3; i++){
				ary[i] = ary2[i];
			}
			c = ary[1].charAt(0);
		} int a = Integer.parseInt(ary[0]); a Integer.parseInt(ary[0]) Integer.parseInt Integer ary[0] ary 0 int b = Integer.parseInt(ary[2]); b Integer.parseInt(ary[2]) Integer.parseInt Integer ary[2] ary 2 switch(c){
			case '+':
				System.out.println(a+b);
				break;
			case '-':
				System.out.println(a-b);
				break;
			case '*':
				System.out.println(a*b);
				break;
			case '/':
				System.out.println(a/b);
				break;
				default:
					break;
			} c case '+': '+' case '+': System.out.println(a+b) System.out.println System.out System System.out a+b a b break; case '-': '-' case '-': System.out.println(a-b) System.out.println System.out System System.out a-b a b break; case '*': '*' case '*': System.out.println(a*b) System.out.println System.out System System.out a*b a b break; case '/': '/' case '/': System.out.println(a/b) System.out.println System.out System System.out a/b a b break; default: default: break; str = in.nextLine() str in.nextLine() in.nextLine in String[] ary2 = str.split(" "); ary2 str.split(" ") str.split str " " for(int i=0; i<3; i++){
				ary[i] = ary2[i];
			} int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
				ary[i] = ary2[i];
			} {
				ary[i] = ary2[i];
			} ary[i] = ary2[i] ary[i] ary i ary2[i] ary2 i c = ary[1].charAt(0) c ary[1].charAt(0) ary[1].charAt ary[1] ary 1 0 in.close() in.close in String[] args args public class Main{
	public static void main(String[] args){
		Scanner in = new Scanner(System.in);		
		String str = in.nextLine();
		String[] ary = str.split(" ");
		char c = ary[1].charAt(0);
		
		while(c != '?'){
			int a = Integer.parseInt(ary[0]);
			int b = Integer.parseInt(ary[2]);
			
			switch(c){
			case '+':
				System.out.println(a+b);
				break;
			case '-':
				System.out.println(a-b);
				break;
			case '*':
				System.out.println(a*b);
				break;
			case '/':
				System.out.println(a/b);
				break;
				default:
					break;
			}
			
			str = in.nextLine();
			String[] ary2 = str.split(" ");
			for(int i=0; i<3; i++){
				ary[i] = ary2[i];
			}
			c = ary[1].charAt(0);
		}
		in.close();
	}
} public class Main{
	public static void main(String[] args){
		Scanner in = new Scanner(System.in);		
		String str = in.nextLine();
		String[] ary = str.split(" ");
		char c = ary[1].charAt(0);
		
		while(c != '?'){
			int a = Integer.parseInt(ary[0]);
			int b = Integer.parseInt(ary[2]);
			
			switch(c){
			case '+':
				System.out.println(a+b);
				break;
			case '-':
				System.out.println(a-b);
				break;
			case '*':
				System.out.println(a*b);
				break;
			case '/':
				System.out.println(a/b);
				break;
				default:
					break;
			}
			
			str = in.nextLine();
			String[] ary2 = str.split(" ");
			for(int i=0; i<3; i++){
				ary[i] = ary2[i];
			}
			c = ary[1].charAt(0);
		}
		in.close();
	}
} Main
import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner in = new Scanner(System.in);		
		String str = in.nextLine();
		String[] ary = str.split(" ");
		char c = ary[1].charAt(0);
		
		while(c != '?'){
			int a = Integer.parseInt(ary[0]);
			int b = Integer.parseInt(ary[2]);
			
			switch(c){
			case '+':
				System.out.println(a+b);
				break;
			case '-':
				System.out.println(a-b);
				break;
			case '*':
				System.out.println(a*b);
				break;
			case '/':
				System.out.println(a/b);
				break;
				default:
					break;
			}
			
			str = in.nextLine();
			String[] ary2 = str.split(" ");
			for(int i=0; i<3; i++){
				ary[i] = ary2[i];
			}
			c = ary[1].charAt(0);
		}
		in.close();
	}
}