/*AOJ-ITP-4-3*/

/* 
 * ???????????´??° a, b ??¨?????????????????? op ?????????????????§???a op b ????¨??????????????????°?????????????????????????????????
 * ????????????????????? op ??????"+"(???)???"-"(???)???"*"(???)???"/"(???)???????????¨??????
 * ???????????§????????????????????´??????????°???°?????\??????????????¨????????????????¨????????????¨???????????? 
 */

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
 
public class Main {
    public static void main(String[] args) throws NumberFormatException, IOException {
 
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String st[];
        String str;
        String op;
        int ans = 0;
        
        while(true){
        	str = br.readLine();
            st = str.split(" ");
        	int a = Integer.parseInt(st[0]);
        	op = st[1];
        	int b = Integer.parseInt(st[2]);
        	
        	if(op.equals("?")){break;}
        	
        	if(op.equals("+")){
        		ans = a + b;
        	}else if(op.equals("-")){
        		ans = a - b;
        	}else if(op.equals("*")){
        		ans = a * b;
        	}else if(op.equals("/")){
        		ans = a / b;
        	}
        	System.out.println(ans);
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
    public static void main(String[] args) throws NumberFormatException, IOException {
 
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String st[];
        String str;
        String op;
        int ans = 0;
        
        while(true){
        	str = br.readLine();
            st = str.split(" ");
        	int a = Integer.parseInt(st[0]);
        	op = st[1];
        	int b = Integer.parseInt(st[2]);
        	
        	if(op.equals("?")){break;}
        	
        	if(op.equals("+")){
        		ans = a + b;
        	}else if(op.equals("-")){
        		ans = a - b;
        	}else if(op.equals("*")){
        		ans = a * b;
        	}else if(op.equals("/")){
        		ans = a / b;
        	}
        	System.out.println(ans);
        }
    }
} Main public static void main(String[] args) throws NumberFormatException, IOException {
 
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String st[];
        String str;
        String op;
        int ans = 0;
        
        while(true){
        	str = br.readLine();
            st = str.split(" ");
        	int a = Integer.parseInt(st[0]);
        	op = st[1];
        	int b = Integer.parseInt(st[2]);
        	
        	if(op.equals("?")){break;}
        	
        	if(op.equals("+")){
        		ans = a + b;
        	}else if(op.equals("-")){
        		ans = a - b;
        	}else if(op.equals("*")){
        		ans = a * b;
        	}else if(op.equals("/")){
        		ans = a / b;
        	}
        	System.out.println(ans);
        }
    } main {
 
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String st[];
        String str;
        String op;
        int ans = 0;
        
        while(true){
        	str = br.readLine();
            st = str.split(" ");
        	int a = Integer.parseInt(st[0]);
        	op = st[1];
        	int b = Integer.parseInt(st[2]);
        	
        	if(op.equals("?")){break;}
        	
        	if(op.equals("+")){
        		ans = a + b;
        	}else if(op.equals("-")){
        		ans = a - b;
        	}else if(op.equals("*")){
        		ans = a * b;
        	}else if(op.equals("/")){
        		ans = a / b;
        	}
        	System.out.println(ans);
        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String st[]; st String str; str String op; op int ans = 0; ans 0 while(true){
        	str = br.readLine();
            st = str.split(" ");
        	int a = Integer.parseInt(st[0]);
        	op = st[1];
        	int b = Integer.parseInt(st[2]);
        	
        	if(op.equals("?")){break;}
        	
        	if(op.equals("+")){
        		ans = a + b;
        	}else if(op.equals("-")){
        		ans = a - b;
        	}else if(op.equals("*")){
        		ans = a * b;
        	}else if(op.equals("/")){
        		ans = a / b;
        	}
        	System.out.println(ans);
        } true {
        	str = br.readLine();
            st = str.split(" ");
        	int a = Integer.parseInt(st[0]);
        	op = st[1];
        	int b = Integer.parseInt(st[2]);
        	
        	if(op.equals("?")){break;}
        	
        	if(op.equals("+")){
        		ans = a + b;
        	}else if(op.equals("-")){
        		ans = a - b;
        	}else if(op.equals("*")){
        		ans = a * b;
        	}else if(op.equals("/")){
        		ans = a / b;
        	}
        	System.out.println(ans);
        } str = br.readLine() str br.readLine() br.readLine br st = str.split(" ") st str.split(" ") str.split str " " int a = Integer.parseInt(st[0]); a Integer.parseInt(st[0]) Integer.parseInt Integer st[0] st 0 op = st[1] op st[1] st 1 int b = Integer.parseInt(st[2]); b Integer.parseInt(st[2]) Integer.parseInt Integer st[2] st 2 if(op.equals("?")){break;} op.equals("?") op.equals op "?" {break;} break; if(op.equals("+")){
        		ans = a + b;
        	}else if(op.equals("-")){
        		ans = a - b;
        	}else if(op.equals("*")){
        		ans = a * b;
        	}else if(op.equals("/")){
        		ans = a / b;
        	} op.equals("+") op.equals op "+" {
        		ans = a + b;
        	} ans = a + b ans a + b a b if(op.equals("-")){
        		ans = a - b;
        	}else if(op.equals("*")){
        		ans = a * b;
        	}else if(op.equals("/")){
        		ans = a / b;
        	} op.equals("-") op.equals op "-" {
        		ans = a - b;
        	} ans = a - b ans a - b a b if(op.equals("*")){
        		ans = a * b;
        	}else if(op.equals("/")){
        		ans = a / b;
        	} op.equals("*") op.equals op "*" {
        		ans = a * b;
        	} ans = a * b ans a * b a b if(op.equals("/")){
        		ans = a / b;
        	} op.equals("/") op.equals op "/" {
        		ans = a / b;
        	} ans = a / b ans a / b a b System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
    public static void main(String[] args) throws NumberFormatException, IOException {
 
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String st[];
        String str;
        String op;
        int ans = 0;
        
        while(true){
        	str = br.readLine();
            st = str.split(" ");
        	int a = Integer.parseInt(st[0]);
        	op = st[1];
        	int b = Integer.parseInt(st[2]);
        	
        	if(op.equals("?")){break;}
        	
        	if(op.equals("+")){
        		ans = a + b;
        	}else if(op.equals("-")){
        		ans = a - b;
        	}else if(op.equals("*")){
        		ans = a * b;
        	}else if(op.equals("/")){
        		ans = a / b;
        	}
        	System.out.println(ans);
        }
    }
} public class Main {
    public static void main(String[] args) throws NumberFormatException, IOException {
 
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String st[];
        String str;
        String op;
        int ans = 0;
        
        while(true){
        	str = br.readLine();
            st = str.split(" ");
        	int a = Integer.parseInt(st[0]);
        	op = st[1];
        	int b = Integer.parseInt(st[2]);
        	
        	if(op.equals("?")){break;}
        	
        	if(op.equals("+")){
        		ans = a + b;
        	}else if(op.equals("-")){
        		ans = a - b;
        	}else if(op.equals("*")){
        		ans = a * b;
        	}else if(op.equals("/")){
        		ans = a / b;
        	}
        	System.out.println(ans);
        }
    }
} Main
/*AOJ-ITP-4-3*/

/* 
 * ???????????´??° a, b ??¨?????????????????? op ?????????????????§???a op b ????¨??????????????????°?????????????????????????????????
 * ????????????????????? op ??????"+"(???)???"-"(???)???"*"(???)???"/"(???)???????????¨??????
 * ???????????§????????????????????´??????????°???°?????\??????????????¨????????????????¨????????????¨???????????? 
 */

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
 
public class Main {
    public static void main(String[] args) throws NumberFormatException, IOException {
 
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String st[];
        String str;
        String op;
        int ans = 0;
        
        while(true){
        	str = br.readLine();
            st = str.split(" ");
        	int a = Integer.parseInt(st[0]);
        	op = st[1];
        	int b = Integer.parseInt(st[2]);
        	
        	if(op.equals("?")){break;}
        	
        	if(op.equals("+")){
        		ans = a + b;
        	}else if(op.equals("-")){
        		ans = a - b;
        	}else if(op.equals("*")){
        		ans = a * b;
        	}else if(op.equals("/")){
        		ans = a / b;
        	}
        	System.out.println(ans);
        }
    }
}