import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        while(true){
            int a=sc.nextInt();
            String op=sc.next();
            int b=sc.nextInt();
            if(op.equals("?"))break;
            System.out.println(Calc(a,op,b));
        }
    }

    public static int Calc(int a,String op,int b){
        if(op.equals("+"))return a+b;
        if(op.equals("-"))return a-b;
        if(op.equals("*"))return a*b;
        if(op.equals("/"))return a/b;
        else return -1;
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        while(true){
            int a=sc.nextInt();
            String op=sc.next();
            int b=sc.nextInt();
            if(op.equals("?"))break;
            System.out.println(Calc(a,op,b));
        }
    }

    public static int Calc(int a,String op,int b){
        if(op.equals("+"))return a+b;
        if(op.equals("-"))return a-b;
        if(op.equals("*"))return a*b;
        if(op.equals("/"))return a/b;
        else return -1;
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        while(true){
            int a=sc.nextInt();
            String op=sc.next();
            int b=sc.nextInt();
            if(op.equals("?"))break;
            System.out.println(Calc(a,op,b));
        }
    } main {
        Scanner sc = new Scanner(System.in);
        while(true){
            int a=sc.nextInt();
            String op=sc.next();
            int b=sc.nextInt();
            if(op.equals("?"))break;
            System.out.println(Calc(a,op,b));
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while(true){
            int a=sc.nextInt();
            String op=sc.next();
            int b=sc.nextInt();
            if(op.equals("?"))break;
            System.out.println(Calc(a,op,b));
        } true {
            int a=sc.nextInt();
            String op=sc.next();
            int b=sc.nextInt();
            if(op.equals("?"))break;
            System.out.println(Calc(a,op,b));
        } int a=sc.nextInt(); a sc.nextInt() sc.nextInt sc String op=sc.next(); op sc.next() sc.next sc int b=sc.nextInt(); b sc.nextInt() sc.nextInt sc if(op.equals("?"))break; op.equals("?") op.equals op "?" break; System.out.println(Calc(a,op,b)) System.out.println System.out System System.out Calc(a,op,b) Calc a op b String[] args args public static int Calc(int a,String op,int b){
        if(op.equals("+"))return a+b;
        if(op.equals("-"))return a-b;
        if(op.equals("*"))return a*b;
        if(op.equals("/"))return a/b;
        else return -1;
    } Calc {
        if(op.equals("+"))return a+b;
        if(op.equals("-"))return a-b;
        if(op.equals("*"))return a*b;
        if(op.equals("/"))return a/b;
        else return -1;
    } if(op.equals("+"))return a+b; op.equals("+") op.equals op "+" return a+b; a+b a b if(op.equals("-"))return a-b; op.equals("-") op.equals op "-" return a-b; a-b a b if(op.equals("*"))return a*b; op.equals("*") op.equals op "*" return a*b; a*b a b if(op.equals("/"))return a/b;
        else return -1; op.equals("/") op.equals op "/" return a/b; a/b a b return -1; -1 1 int a a String op op int b b public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        while(true){
            int a=sc.nextInt();
            String op=sc.next();
            int b=sc.nextInt();
            if(op.equals("?"))break;
            System.out.println(Calc(a,op,b));
        }
    }

    public static int Calc(int a,String op,int b){
        if(op.equals("+"))return a+b;
        if(op.equals("-"))return a-b;
        if(op.equals("*"))return a*b;
        if(op.equals("/"))return a/b;
        else return -1;
    }
} public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        while(true){
            int a=sc.nextInt();
            String op=sc.next();
            int b=sc.nextInt();
            if(op.equals("?"))break;
            System.out.println(Calc(a,op,b));
        }
    }

    public static int Calc(int a,String op,int b){
        if(op.equals("+"))return a+b;
        if(op.equals("-"))return a-b;
        if(op.equals("*"))return a*b;
        if(op.equals("/"))return a/b;
        else return -1;
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        while(true){
            int a=sc.nextInt();
            String op=sc.next();
            int b=sc.nextInt();
            if(op.equals("?"))break;
            System.out.println(Calc(a,op,b));
        }
    }

    public static int Calc(int a,String op,int b){
        if(op.equals("+"))return a+b;
        if(op.equals("-"))return a-b;
        if(op.equals("*"))return a*b;
        if(op.equals("/"))return a/b;
        else return -1;
    }
}
