import java.io.*;

class Main{
    public static void main(String[] args) throws Exception{

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int num = 0;

        while(true){

            String num1 = br.readLine();
            String[] num2 = num1.split(" ");
            int a = Integer.parseInt(num2[0]);
            int b = Integer.parseInt(num2[2]);
            String op = num2[1];

            if(op.equals("+")){
                num = a + b;
                System.out.println(num);
            }else if(op.equals("-")){
                num = a - b;
                System.out.println(num);
            }else if(op.equals("*")){
                num = a * b;
                System.out.println(num);
            }else if(op.equals("/")){
                num = a / b;
                System.out.println(num);
            }else if(op.equals("?")){
                break;
            }
        }
    }
} import java.io.*; io.* java class Main{
    public static void main(String[] args) throws Exception{

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int num = 0;

        while(true){

            String num1 = br.readLine();
            String[] num2 = num1.split(" ");
            int a = Integer.parseInt(num2[0]);
            int b = Integer.parseInt(num2[2]);
            String op = num2[1];

            if(op.equals("+")){
                num = a + b;
                System.out.println(num);
            }else if(op.equals("-")){
                num = a - b;
                System.out.println(num);
            }else if(op.equals("*")){
                num = a * b;
                System.out.println(num);
            }else if(op.equals("/")){
                num = a / b;
                System.out.println(num);
            }else if(op.equals("?")){
                break;
            }
        }
    }
} Main public static void main(String[] args) throws Exception{

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int num = 0;

        while(true){

            String num1 = br.readLine();
            String[] num2 = num1.split(" ");
            int a = Integer.parseInt(num2[0]);
            int b = Integer.parseInt(num2[2]);
            String op = num2[1];

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

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int num = 0;

        while(true){

            String num1 = br.readLine();
            String[] num2 = num1.split(" ");
            int a = Integer.parseInt(num2[0]);
            int b = Integer.parseInt(num2[2]);
            String op = num2[1];

            if(op.equals("+")){
                num = a + b;
                System.out.println(num);
            }else if(op.equals("-")){
                num = a - b;
                System.out.println(num);
            }else if(op.equals("*")){
                num = a * b;
                System.out.println(num);
            }else if(op.equals("/")){
                num = a / b;
                System.out.println(num);
            }else if(op.equals("?")){
                break;
            }
        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int num = 0; num 0 while(true){

            String num1 = br.readLine();
            String[] num2 = num1.split(" ");
            int a = Integer.parseInt(num2[0]);
            int b = Integer.parseInt(num2[2]);
            String op = num2[1];

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

            String num1 = br.readLine();
            String[] num2 = num1.split(" ");
            int a = Integer.parseInt(num2[0]);
            int b = Integer.parseInt(num2[2]);
            String op = num2[1];

            if(op.equals("+")){
                num = a + b;
                System.out.println(num);
            }else if(op.equals("-")){
                num = a - b;
                System.out.println(num);
            }else if(op.equals("*")){
                num = a * b;
                System.out.println(num);
            }else if(op.equals("/")){
                num = a / b;
                System.out.println(num);
            }else if(op.equals("?")){
                break;
            }
        } String num1 = br.readLine(); num1 br.readLine() br.readLine br String[] num2 = num1.split(" "); num2 num1.split(" ") num1.split num1 " " int a = Integer.parseInt(num2[0]); a Integer.parseInt(num2[0]) Integer.parseInt Integer num2[0] num2 0 int b = Integer.parseInt(num2[2]); b Integer.parseInt(num2[2]) Integer.parseInt Integer num2[2] num2 2 String op = num2[1]; op num2[1] num2 1 if(op.equals("+")){
                num = a + b;
                System.out.println(num);
            }else if(op.equals("-")){
                num = a - b;
                System.out.println(num);
            }else if(op.equals("*")){
                num = a * b;
                System.out.println(num);
            }else if(op.equals("/")){
                num = a / b;
                System.out.println(num);
            }else if(op.equals("?")){
                break;
            } op.equals("+") op.equals op "+" {
                num = a + b;
                System.out.println(num);
            } num = a + b num a + b a b System.out.println(num) System.out.println System.out System System.out num if(op.equals("-")){
                num = a - b;
                System.out.println(num);
            }else if(op.equals("*")){
                num = a * b;
                System.out.println(num);
            }else if(op.equals("/")){
                num = a / b;
                System.out.println(num);
            }else if(op.equals("?")){
                break;
            } op.equals("-") op.equals op "-" {
                num = a - b;
                System.out.println(num);
            } num = a - b num a - b a b System.out.println(num) System.out.println System.out System System.out num if(op.equals("*")){
                num = a * b;
                System.out.println(num);
            }else if(op.equals("/")){
                num = a / b;
                System.out.println(num);
            }else if(op.equals("?")){
                break;
            } op.equals("*") op.equals op "*" {
                num = a * b;
                System.out.println(num);
            } num = a * b num a * b a b System.out.println(num) System.out.println System.out System System.out num if(op.equals("/")){
                num = a / b;
                System.out.println(num);
            }else if(op.equals("?")){
                break;
            } op.equals("/") op.equals op "/" {
                num = a / b;
                System.out.println(num);
            } num = a / b num a / b a b System.out.println(num) System.out.println System.out System System.out num if(op.equals("?")){
                break;
            } op.equals("?") op.equals op "?" {
                break;
            } break; String[] args args
import java.io.*;

class Main{
    public static void main(String[] args) throws Exception{

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int num = 0;

        while(true){

            String num1 = br.readLine();
            String[] num2 = num1.split(" ");
            int a = Integer.parseInt(num2[0]);
            int b = Integer.parseInt(num2[2]);
            String op = num2[1];

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