import java.io.*;

class Main{

    public static void main(String[] args)throws IOException{

	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String tmp;
	
	while((tmp = br.readLine()) != null){
	    String[] input = tmp.split(" ");
	    int a = Integer.parseInt(input[0]);
	    String op = input[1];
	    int b = Integer.parseInt(input[2]);
	    int result = 0;

	    if(op.equals("?")){
		break;
	    }
		
	    if(op.equals("+")){
		result = a + b;
	    }else if(op.equals("-")){
		result = a - b;
	    }else if(op.equals("*")){
		result = a * b;
	    }else if(op.equals("/")){
		result = a / b;
	    }else{
		System.out.println("error");
	    }

	    System.out.printf("%d\n", result);
	}
	
    }

} import java.io.*; io.* java class Main{

    public static void main(String[] args)throws IOException{

	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String tmp;
	
	while((tmp = br.readLine()) != null){
	    String[] input = tmp.split(" ");
	    int a = Integer.parseInt(input[0]);
	    String op = input[1];
	    int b = Integer.parseInt(input[2]);
	    int result = 0;

	    if(op.equals("?")){
		break;
	    }
		
	    if(op.equals("+")){
		result = a + b;
	    }else if(op.equals("-")){
		result = a - b;
	    }else if(op.equals("*")){
		result = a * b;
	    }else if(op.equals("/")){
		result = a / b;
	    }else{
		System.out.println("error");
	    }

	    System.out.printf("%d\n", result);
	}
	
    }

} Main public static void main(String[] args)throws IOException{

	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String tmp;
	
	while((tmp = br.readLine()) != null){
	    String[] input = tmp.split(" ");
	    int a = Integer.parseInt(input[0]);
	    String op = input[1];
	    int b = Integer.parseInt(input[2]);
	    int result = 0;

	    if(op.equals("?")){
		break;
	    }
		
	    if(op.equals("+")){
		result = a + b;
	    }else if(op.equals("-")){
		result = a - b;
	    }else if(op.equals("*")){
		result = a * b;
	    }else if(op.equals("/")){
		result = a / b;
	    }else{
		System.out.println("error");
	    }

	    System.out.printf("%d\n", result);
	}
	
    } main {

	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String tmp;
	
	while((tmp = br.readLine()) != null){
	    String[] input = tmp.split(" ");
	    int a = Integer.parseInt(input[0]);
	    String op = input[1];
	    int b = Integer.parseInt(input[2]);
	    int result = 0;

	    if(op.equals("?")){
		break;
	    }
		
	    if(op.equals("+")){
		result = a + b;
	    }else if(op.equals("-")){
		result = a - b;
	    }else if(op.equals("*")){
		result = a * b;
	    }else if(op.equals("/")){
		result = a / b;
	    }else{
		System.out.println("error");
	    }

	    System.out.printf("%d\n", result);
	}
	
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String tmp; tmp while((tmp = br.readLine()) != null){
	    String[] input = tmp.split(" ");
	    int a = Integer.parseInt(input[0]);
	    String op = input[1];
	    int b = Integer.parseInt(input[2]);
	    int result = 0;

	    if(op.equals("?")){
		break;
	    }
		
	    if(op.equals("+")){
		result = a + b;
	    }else if(op.equals("-")){
		result = a - b;
	    }else if(op.equals("*")){
		result = a * b;
	    }else if(op.equals("/")){
		result = a / b;
	    }else{
		System.out.println("error");
	    }

	    System.out.printf("%d\n", result);
	} (tmp = br.readLine()) != null (tmp = br.readLine()) tmp br.readLine() br.readLine br null {
	    String[] input = tmp.split(" ");
	    int a = Integer.parseInt(input[0]);
	    String op = input[1];
	    int b = Integer.parseInt(input[2]);
	    int result = 0;

	    if(op.equals("?")){
		break;
	    }
		
	    if(op.equals("+")){
		result = a + b;
	    }else if(op.equals("-")){
		result = a - b;
	    }else if(op.equals("*")){
		result = a * b;
	    }else if(op.equals("/")){
		result = a / b;
	    }else{
		System.out.println("error");
	    }

	    System.out.printf("%d\n", result);
	} String[] input = tmp.split(" "); input tmp.split(" ") tmp.split tmp " " int a = Integer.parseInt(input[0]); a Integer.parseInt(input[0]) Integer.parseInt Integer input[0] input 0 String op = input[1]; op input[1] input 1 int b = Integer.parseInt(input[2]); b Integer.parseInt(input[2]) Integer.parseInt Integer input[2] input 2 int result = 0; result 0 if(op.equals("?")){
		break;
	    } op.equals("?") op.equals op "?" {
		break;
	    } break; if(op.equals("+")){
		result = a + b;
	    }else if(op.equals("-")){
		result = a - b;
	    }else if(op.equals("*")){
		result = a * b;
	    }else if(op.equals("/")){
		result = a / b;
	    }else{
		System.out.println("error");
	    } op.equals("+") op.equals op "+" {
		result = a + b;
	    } result = a + b result a + b a b if(op.equals("-")){
		result = a - b;
	    }else if(op.equals("*")){
		result = a * b;
	    }else if(op.equals("/")){
		result = a / b;
	    }else{
		System.out.println("error");
	    } op.equals("-") op.equals op "-" {
		result = a - b;
	    } result = a - b result a - b a b if(op.equals("*")){
		result = a * b;
	    }else if(op.equals("/")){
		result = a / b;
	    }else{
		System.out.println("error");
	    } op.equals("*") op.equals op "*" {
		result = a * b;
	    } result = a * b result a * b a b if(op.equals("/")){
		result = a / b;
	    }else{
		System.out.println("error");
	    } op.equals("/") op.equals op "/" {
		result = a / b;
	    } result = a / b result a / b a b {
		System.out.println("error");
	    } System.out.println("error") System.out.println System.out System System.out "error" System.out.printf("%d\n", result) System.out.printf System.out System System.out "%d\n" result String[] args args
import java.io.*;

class Main{

    public static void main(String[] args)throws IOException{

	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String tmp;
	
	while((tmp = br.readLine()) != null){
	    String[] input = tmp.split(" ");
	    int a = Integer.parseInt(input[0]);
	    String op = input[1];
	    int b = Integer.parseInt(input[2]);
	    int result = 0;

	    if(op.equals("?")){
		break;
	    }
		
	    if(op.equals("+")){
		result = a + b;
	    }else if(op.equals("-")){
		result = a - b;
	    }else if(op.equals("*")){
		result = a * b;
	    }else if(op.equals("/")){
		result = a / b;
	    }else{
		System.out.println("error");
	    }

	    System.out.printf("%d\n", result);
	}
	
    }

}