import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
	public static void main(String[] args) throws IOException{
		String str[];
        int a,b,answer = 0;
        String operator;
        StringBuilder builder = new StringBuilder();


        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        while(true){
	        str = br.readLine().split(" ");
	        a = Integer.parseInt(str[0]);
	        operator = str[1];
	        b = Integer.parseInt(str[2]);

	        if(operator.equals("?"))break;
	        else if(operator.equals("+")) answer = a + b;
	        else if(operator.equals("/")) answer = a / b;
	        else if(operator.equals("-")) answer = a - b;
	        else if(operator.equals("*")) answer = a * b;

	        builder.append(answer + "\n");
        }
        builder.delete(builder.length() - 1, builder.length());
        System.out.println(builder.toString());

        br.close();
	}
} 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 IOException{
		String str[];
        int a,b,answer = 0;
        String operator;
        StringBuilder builder = new StringBuilder();


        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        while(true){
	        str = br.readLine().split(" ");
	        a = Integer.parseInt(str[0]);
	        operator = str[1];
	        b = Integer.parseInt(str[2]);

	        if(operator.equals("?"))break;
	        else if(operator.equals("+")) answer = a + b;
	        else if(operator.equals("/")) answer = a / b;
	        else if(operator.equals("-")) answer = a - b;
	        else if(operator.equals("*")) answer = a * b;

	        builder.append(answer + "\n");
        }
        builder.delete(builder.length() - 1, builder.length());
        System.out.println(builder.toString());

        br.close();
	}
} Main public static void main(String[] args) throws IOException{
		String str[];
        int a,b,answer = 0;
        String operator;
        StringBuilder builder = new StringBuilder();


        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        while(true){
	        str = br.readLine().split(" ");
	        a = Integer.parseInt(str[0]);
	        operator = str[1];
	        b = Integer.parseInt(str[2]);

	        if(operator.equals("?"))break;
	        else if(operator.equals("+")) answer = a + b;
	        else if(operator.equals("/")) answer = a / b;
	        else if(operator.equals("-")) answer = a - b;
	        else if(operator.equals("*")) answer = a * b;

	        builder.append(answer + "\n");
        }
        builder.delete(builder.length() - 1, builder.length());
        System.out.println(builder.toString());

        br.close();
	} main {
		String str[];
        int a,b,answer = 0;
        String operator;
        StringBuilder builder = new StringBuilder();


        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        while(true){
	        str = br.readLine().split(" ");
	        a = Integer.parseInt(str[0]);
	        operator = str[1];
	        b = Integer.parseInt(str[2]);

	        if(operator.equals("?"))break;
	        else if(operator.equals("+")) answer = a + b;
	        else if(operator.equals("/")) answer = a / b;
	        else if(operator.equals("-")) answer = a - b;
	        else if(operator.equals("*")) answer = a * b;

	        builder.append(answer + "\n");
        }
        builder.delete(builder.length() - 1, builder.length());
        System.out.println(builder.toString());

        br.close();
	} String str[]; str int a a b b answer = 0; answer 0 String operator; operator StringBuilder builder = new StringBuilder(); builder new StringBuilder() BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) while(true){
	        str = br.readLine().split(" ");
	        a = Integer.parseInt(str[0]);
	        operator = str[1];
	        b = Integer.parseInt(str[2]);

	        if(operator.equals("?"))break;
	        else if(operator.equals("+")) answer = a + b;
	        else if(operator.equals("/")) answer = a / b;
	        else if(operator.equals("-")) answer = a - b;
	        else if(operator.equals("*")) answer = a * b;

	        builder.append(answer + "\n");
        } true {
	        str = br.readLine().split(" ");
	        a = Integer.parseInt(str[0]);
	        operator = str[1];
	        b = Integer.parseInt(str[2]);

	        if(operator.equals("?"))break;
	        else if(operator.equals("+")) answer = a + b;
	        else if(operator.equals("/")) answer = a / b;
	        else if(operator.equals("-")) answer = a - b;
	        else if(operator.equals("*")) answer = a * b;

	        builder.append(answer + "\n");
        } str = br.readLine().split(" ") str br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " a = Integer.parseInt(str[0]) a Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 operator = str[1] operator str[1] str 1 b = Integer.parseInt(str[2]) b Integer.parseInt(str[2]) Integer.parseInt Integer str[2] str 2 if(operator.equals("?"))break;
	        else if(operator.equals("+")) answer = a + b;
	        else if(operator.equals("/")) answer = a / b;
	        else if(operator.equals("-")) answer = a - b;
	        else if(operator.equals("*")) answer = a * b; operator.equals("?") operator.equals operator "?" break; if(operator.equals("+")) answer = a + b;
	        else if(operator.equals("/")) answer = a / b;
	        else if(operator.equals("-")) answer = a - b;
	        else if(operator.equals("*")) answer = a * b; operator.equals("+") operator.equals operator "+" answer = a + b answer a + b a b if(operator.equals("/")) answer = a / b;
	        else if(operator.equals("-")) answer = a - b;
	        else if(operator.equals("*")) answer = a * b; operator.equals("/") operator.equals operator "/" answer = a / b answer a / b a b if(operator.equals("-")) answer = a - b;
	        else if(operator.equals("*")) answer = a * b; operator.equals("-") operator.equals operator "-" answer = a - b answer a - b a b if(operator.equals("*")) answer = a * b; operator.equals("*") operator.equals operator "*" answer = a * b answer a * b a b builder.append(answer + "\n") builder.append builder answer + "\n" answer "\n" builder.delete(builder.length() - 1, builder.length()) builder.delete builder builder.length() - 1 builder.length() builder.length builder 1 builder.length() builder.length builder System.out.println(builder.toString()) System.out.println System.out System System.out builder.toString() builder.toString builder br.close() br.close br String[] args args public class Main {
	public static void main(String[] args) throws IOException{
		String str[];
        int a,b,answer = 0;
        String operator;
        StringBuilder builder = new StringBuilder();


        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        while(true){
	        str = br.readLine().split(" ");
	        a = Integer.parseInt(str[0]);
	        operator = str[1];
	        b = Integer.parseInt(str[2]);

	        if(operator.equals("?"))break;
	        else if(operator.equals("+")) answer = a + b;
	        else if(operator.equals("/")) answer = a / b;
	        else if(operator.equals("-")) answer = a - b;
	        else if(operator.equals("*")) answer = a * b;

	        builder.append(answer + "\n");
        }
        builder.delete(builder.length() - 1, builder.length());
        System.out.println(builder.toString());

        br.close();
	}
} public class Main {
	public static void main(String[] args) throws IOException{
		String str[];
        int a,b,answer = 0;
        String operator;
        StringBuilder builder = new StringBuilder();


        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        while(true){
	        str = br.readLine().split(" ");
	        a = Integer.parseInt(str[0]);
	        operator = str[1];
	        b = Integer.parseInt(str[2]);

	        if(operator.equals("?"))break;
	        else if(operator.equals("+")) answer = a + b;
	        else if(operator.equals("/")) answer = a / b;
	        else if(operator.equals("-")) answer = a - b;
	        else if(operator.equals("*")) answer = a * b;

	        builder.append(answer + "\n");
        }
        builder.delete(builder.length() - 1, builder.length());
        System.out.println(builder.toString());

        br.close();
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
	public static void main(String[] args) throws IOException{
		String str[];
        int a,b,answer = 0;
        String operator;
        StringBuilder builder = new StringBuilder();


        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        while(true){
	        str = br.readLine().split(" ");
	        a = Integer.parseInt(str[0]);
	        operator = str[1];
	        b = Integer.parseInt(str[2]);

	        if(operator.equals("?"))break;
	        else if(operator.equals("+")) answer = a + b;
	        else if(operator.equals("/")) answer = a / b;
	        else if(operator.equals("-")) answer = a - b;
	        else if(operator.equals("*")) answer = a * b;

	        builder.append(answer + "\n");
        }
        builder.delete(builder.length() - 1, builder.length());
        System.out.println(builder.toString());

        br.close();
	}
}