import java.util.Scanner;
	
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] a = new int[20000];
		int[] b = new int[20000];
		char[] op = new char[20000];
		
		 for(int i = 0; i <20000; i++) {
			
			 a[i] = sc.nextInt();
			 op[i] = sc.next().charAt(0);
			 if(op[i] == '?') break;
			 b[i] = sc.nextInt();
			
			
		 }
		 
		 for(int i = 0; i <20000; i++) {
			 if(op[i] == '?') break; 
			 
			 else if(op[i] != '?'){ 
				 switch(op[i]) {
				 case '+' : System.out.println( a[i]+b[i]);
				 break;
				 case '-' : System.out.println( a[i]-b[i]);
				 break;
				 case '*' : System.out.println( a[i]*b[i]);
				 break;
				 case '/' : System.out.println( a[i]/b[i]);
				 break;
				 case '?' : break;
				 }
			 }
			 
		 }
		sc.close();
		
   }

} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] a = new int[20000];
		int[] b = new int[20000];
		char[] op = new char[20000];
		
		 for(int i = 0; i <20000; i++) {
			
			 a[i] = sc.nextInt();
			 op[i] = sc.next().charAt(0);
			 if(op[i] == '?') break;
			 b[i] = sc.nextInt();
			
			
		 }
		 
		 for(int i = 0; i <20000; i++) {
			 if(op[i] == '?') break; 
			 
			 else if(op[i] != '?'){ 
				 switch(op[i]) {
				 case '+' : System.out.println( a[i]+b[i]);
				 break;
				 case '-' : System.out.println( a[i]-b[i]);
				 break;
				 case '*' : System.out.println( a[i]*b[i]);
				 break;
				 case '/' : System.out.println( a[i]/b[i]);
				 break;
				 case '?' : break;
				 }
			 }
			 
		 }
		sc.close();
		
   }

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] a = new int[20000];
		int[] b = new int[20000];
		char[] op = new char[20000];
		
		 for(int i = 0; i <20000; i++) {
			
			 a[i] = sc.nextInt();
			 op[i] = sc.next().charAt(0);
			 if(op[i] == '?') break;
			 b[i] = sc.nextInt();
			
			
		 }
		 
		 for(int i = 0; i <20000; i++) {
			 if(op[i] == '?') break; 
			 
			 else if(op[i] != '?'){ 
				 switch(op[i]) {
				 case '+' : System.out.println( a[i]+b[i]);
				 break;
				 case '-' : System.out.println( a[i]-b[i]);
				 break;
				 case '*' : System.out.println( a[i]*b[i]);
				 break;
				 case '/' : System.out.println( a[i]/b[i]);
				 break;
				 case '?' : break;
				 }
			 }
			 
		 }
		sc.close();
		
   } main {
		Scanner sc = new Scanner(System.in);
		int[] a = new int[20000];
		int[] b = new int[20000];
		char[] op = new char[20000];
		
		 for(int i = 0; i <20000; i++) {
			
			 a[i] = sc.nextInt();
			 op[i] = sc.next().charAt(0);
			 if(op[i] == '?') break;
			 b[i] = sc.nextInt();
			
			
		 }
		 
		 for(int i = 0; i <20000; i++) {
			 if(op[i] == '?') break; 
			 
			 else if(op[i] != '?'){ 
				 switch(op[i]) {
				 case '+' : System.out.println( a[i]+b[i]);
				 break;
				 case '-' : System.out.println( a[i]-b[i]);
				 break;
				 case '*' : System.out.println( a[i]*b[i]);
				 break;
				 case '/' : System.out.println( a[i]/b[i]);
				 break;
				 case '?' : break;
				 }
			 }
			 
		 }
		sc.close();
		
   } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int[] a = new int[20000]; a new int[20000] 20000 int[] b = new int[20000]; b new int[20000] 20000 char[] op = new char[20000]; op new char[20000] 20000 for(int i = 0; i <20000; i++) {
			
			 a[i] = sc.nextInt();
			 op[i] = sc.next().charAt(0);
			 if(op[i] == '?') break;
			 b[i] = sc.nextInt();
			
			
		 } int i = 0; int i = 0; i 0 i <20000 i 20000 i++ i++ i {
			
			 a[i] = sc.nextInt();
			 op[i] = sc.next().charAt(0);
			 if(op[i] == '?') break;
			 b[i] = sc.nextInt();
			
			
		 } {
			
			 a[i] = sc.nextInt();
			 op[i] = sc.next().charAt(0);
			 if(op[i] == '?') break;
			 b[i] = sc.nextInt();
			
			
		 } a[i] = sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc op[i] = sc.next().charAt(0) op[i] op i sc.next().charAt(0) sc.next().charAt sc.next() sc.next sc 0 if(op[i] == '?') break; op[i] == '?' op[i] op i '?' break; b[i] = sc.nextInt() b[i] b i sc.nextInt() sc.nextInt sc for(int i = 0; i <20000; i++) {
			 if(op[i] == '?') break; 
			 
			 else if(op[i] != '?'){ 
				 switch(op[i]) {
				 case '+' : System.out.println( a[i]+b[i]);
				 break;
				 case '-' : System.out.println( a[i]-b[i]);
				 break;
				 case '*' : System.out.println( a[i]*b[i]);
				 break;
				 case '/' : System.out.println( a[i]/b[i]);
				 break;
				 case '?' : break;
				 }
			 }
			 
		 } int i = 0; int i = 0; i 0 i <20000 i 20000 i++ i++ i {
			 if(op[i] == '?') break; 
			 
			 else if(op[i] != '?'){ 
				 switch(op[i]) {
				 case '+' : System.out.println( a[i]+b[i]);
				 break;
				 case '-' : System.out.println( a[i]-b[i]);
				 break;
				 case '*' : System.out.println( a[i]*b[i]);
				 break;
				 case '/' : System.out.println( a[i]/b[i]);
				 break;
				 case '?' : break;
				 }
			 }
			 
		 } {
			 if(op[i] == '?') break; 
			 
			 else if(op[i] != '?'){ 
				 switch(op[i]) {
				 case '+' : System.out.println( a[i]+b[i]);
				 break;
				 case '-' : System.out.println( a[i]-b[i]);
				 break;
				 case '*' : System.out.println( a[i]*b[i]);
				 break;
				 case '/' : System.out.println( a[i]/b[i]);
				 break;
				 case '?' : break;
				 }
			 }
			 
		 } if(op[i] == '?') break; 
			 
			 else if(op[i] != '?'){ 
				 switch(op[i]) {
				 case '+' : System.out.println( a[i]+b[i]);
				 break;
				 case '-' : System.out.println( a[i]-b[i]);
				 break;
				 case '*' : System.out.println( a[i]*b[i]);
				 break;
				 case '/' : System.out.println( a[i]/b[i]);
				 break;
				 case '?' : break;
				 }
			 } op[i] == '?' op[i] op i '?' break; if(op[i] != '?'){ 
				 switch(op[i]) {
				 case '+' : System.out.println( a[i]+b[i]);
				 break;
				 case '-' : System.out.println( a[i]-b[i]);
				 break;
				 case '*' : System.out.println( a[i]*b[i]);
				 break;
				 case '/' : System.out.println( a[i]/b[i]);
				 break;
				 case '?' : break;
				 }
			 } op[i] != '?' op[i] op i '?' { 
				 switch(op[i]) {
				 case '+' : System.out.println( a[i]+b[i]);
				 break;
				 case '-' : System.out.println( a[i]-b[i]);
				 break;
				 case '*' : System.out.println( a[i]*b[i]);
				 break;
				 case '/' : System.out.println( a[i]/b[i]);
				 break;
				 case '?' : break;
				 }
			 } switch(op[i]) {
				 case '+' : System.out.println( a[i]+b[i]);
				 break;
				 case '-' : System.out.println( a[i]-b[i]);
				 break;
				 case '*' : System.out.println( a[i]*b[i]);
				 break;
				 case '/' : System.out.println( a[i]/b[i]);
				 break;
				 case '?' : break;
				 } op[i] op i case '+' : '+' case '+' : System.out.println( a[i]+b[i]) System.out.println System.out System System.out a[i]+b[i] a[i] a i b[i] b i break; case '-' : '-' case '-' : System.out.println( a[i]-b[i]) System.out.println System.out System System.out a[i]-b[i] a[i] a i b[i] b i break; case '*' : '*' case '*' : System.out.println( a[i]*b[i]) System.out.println System.out System System.out a[i]*b[i] a[i] a i b[i] b i break; case '/' : '/' case '/' : System.out.println( a[i]/b[i]) System.out.println System.out System System.out a[i]/b[i] a[i] a i b[i] b i break; case '?' : '?' case '?' : break; sc.close() sc.close sc String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] a = new int[20000];
		int[] b = new int[20000];
		char[] op = new char[20000];
		
		 for(int i = 0; i <20000; i++) {
			
			 a[i] = sc.nextInt();
			 op[i] = sc.next().charAt(0);
			 if(op[i] == '?') break;
			 b[i] = sc.nextInt();
			
			
		 }
		 
		 for(int i = 0; i <20000; i++) {
			 if(op[i] == '?') break; 
			 
			 else if(op[i] != '?'){ 
				 switch(op[i]) {
				 case '+' : System.out.println( a[i]+b[i]);
				 break;
				 case '-' : System.out.println( a[i]-b[i]);
				 break;
				 case '*' : System.out.println( a[i]*b[i]);
				 break;
				 case '/' : System.out.println( a[i]/b[i]);
				 break;
				 case '?' : break;
				 }
			 }
			 
		 }
		sc.close();
		
   }

} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] a = new int[20000];
		int[] b = new int[20000];
		char[] op = new char[20000];
		
		 for(int i = 0; i <20000; i++) {
			
			 a[i] = sc.nextInt();
			 op[i] = sc.next().charAt(0);
			 if(op[i] == '?') break;
			 b[i] = sc.nextInt();
			
			
		 }
		 
		 for(int i = 0; i <20000; i++) {
			 if(op[i] == '?') break; 
			 
			 else if(op[i] != '?'){ 
				 switch(op[i]) {
				 case '+' : System.out.println( a[i]+b[i]);
				 break;
				 case '-' : System.out.println( a[i]-b[i]);
				 break;
				 case '*' : System.out.println( a[i]*b[i]);
				 break;
				 case '/' : System.out.println( a[i]/b[i]);
				 break;
				 case '?' : break;
				 }
			 }
			 
		 }
		sc.close();
		
   }

} Main
import java.util.Scanner;
	
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] a = new int[20000];
		int[] b = new int[20000];
		char[] op = new char[20000];
		
		 for(int i = 0; i <20000; i++) {
			
			 a[i] = sc.nextInt();
			 op[i] = sc.next().charAt(0);
			 if(op[i] == '?') break;
			 b[i] = sc.nextInt();
			
			
		 }
		 
		 for(int i = 0; i <20000; i++) {
			 if(op[i] == '?') break; 
			 
			 else if(op[i] != '?'){ 
				 switch(op[i]) {
				 case '+' : System.out.println( a[i]+b[i]);
				 break;
				 case '-' : System.out.println( a[i]-b[i]);
				 break;
				 case '*' : System.out.println( a[i]*b[i]);
				 break;
				 case '/' : System.out.println( a[i]/b[i]);
				 break;
				 case '?' : break;
				 }
			 }
			 
		 }
		sc.close();
		
   }

}