import java.util.Scanner;
 
public class Main{
 
    public static void main(String[] args) {
 
        int a = 0;
        String operator = "";
        int b = 0;
 
        // テキスト入力
        Scanner sc = new Scanner(System.in);
        String out = "";
 
        // 演算子の変数に入っている中身で場合わけ
        while (true) {
 
            //
            while (sc.hasNext()) {
                a = sc.nextInt();
                operator = sc.next();
                b = sc.nextInt();
                break;
            }
 
            if (operator.equals("?")) {
                break;
 
            } else if (operator.equals("/")) {
                out = out + a / b + "\n";
 
            } else if (operator.equals("*")) {
                out = out + a * b + "\n";
 
            } else if (operator.equals("+")) {
                out = out + (a + b) + "\n";
 
            } else if (operator.equals("-")) {
                out = out + (a - b) + "\n";
            }
        }
        // 出力
        System.out.print(out);
    }
} import java.util.Scanner; Scanner java.util public class Main{
 
    public static void main(String[] args) {
 
        int a = 0;
        String operator = "";
        int b = 0;
 
        // テキスト入力
        Scanner sc = new Scanner(System.in);
        String out = "";
 
        // 演算子の変数に入っている中身で場合わけ
        while (true) {
 
            //
            while (sc.hasNext()) {
                a = sc.nextInt();
                operator = sc.next();
                b = sc.nextInt();
                break;
            }
 
            if (operator.equals("?")) {
                break;
 
            } else if (operator.equals("/")) {
                out = out + a / b + "\n";
 
            } else if (operator.equals("*")) {
                out = out + a * b + "\n";
 
            } else if (operator.equals("+")) {
                out = out + (a + b) + "\n";
 
            } else if (operator.equals("-")) {
                out = out + (a - b) + "\n";
            }
        }
        // 出力
        System.out.print(out);
    }
} Main public static void main(String[] args) {
 
        int a = 0;
        String operator = "";
        int b = 0;
 
        // テキスト入力
        Scanner sc = new Scanner(System.in);
        String out = "";
 
        // 演算子の変数に入っている中身で場合わけ
        while (true) {
 
            //
            while (sc.hasNext()) {
                a = sc.nextInt();
                operator = sc.next();
                b = sc.nextInt();
                break;
            }
 
            if (operator.equals("?")) {
                break;
 
            } else if (operator.equals("/")) {
                out = out + a / b + "\n";
 
            } else if (operator.equals("*")) {
                out = out + a * b + "\n";
 
            } else if (operator.equals("+")) {
                out = out + (a + b) + "\n";
 
            } else if (operator.equals("-")) {
                out = out + (a - b) + "\n";
            }
        }
        // 出力
        System.out.print(out);
    } main {
 
        int a = 0;
        String operator = "";
        int b = 0;
 
        // テキスト入力
        Scanner sc = new Scanner(System.in);
        String out = "";
 
        // 演算子の変数に入っている中身で場合わけ
        while (true) {
 
            //
            while (sc.hasNext()) {
                a = sc.nextInt();
                operator = sc.next();
                b = sc.nextInt();
                break;
            }
 
            if (operator.equals("?")) {
                break;
 
            } else if (operator.equals("/")) {
                out = out + a / b + "\n";
 
            } else if (operator.equals("*")) {
                out = out + a * b + "\n";
 
            } else if (operator.equals("+")) {
                out = out + (a + b) + "\n";
 
            } else if (operator.equals("-")) {
                out = out + (a - b) + "\n";
            }
        }
        // 出力
        System.out.print(out);
    } int a = 0; a 0 String operator = ""; operator "" int b = 0; b 0 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String out = ""; out "" while (true) {
 
            //
            while (sc.hasNext()) {
                a = sc.nextInt();
                operator = sc.next();
                b = sc.nextInt();
                break;
            }
 
            if (operator.equals("?")) {
                break;
 
            } else if (operator.equals("/")) {
                out = out + a / b + "\n";
 
            } else if (operator.equals("*")) {
                out = out + a * b + "\n";
 
            } else if (operator.equals("+")) {
                out = out + (a + b) + "\n";
 
            } else if (operator.equals("-")) {
                out = out + (a - b) + "\n";
            }
        } true {
 
            //
            while (sc.hasNext()) {
                a = sc.nextInt();
                operator = sc.next();
                b = sc.nextInt();
                break;
            }
 
            if (operator.equals("?")) {
                break;
 
            } else if (operator.equals("/")) {
                out = out + a / b + "\n";
 
            } else if (operator.equals("*")) {
                out = out + a * b + "\n";
 
            } else if (operator.equals("+")) {
                out = out + (a + b) + "\n";
 
            } else if (operator.equals("-")) {
                out = out + (a - b) + "\n";
            }
        } while (sc.hasNext()) {
                a = sc.nextInt();
                operator = sc.next();
                b = sc.nextInt();
                break;
            } sc.hasNext() sc.hasNext sc {
                a = sc.nextInt();
                operator = sc.next();
                b = sc.nextInt();
                break;
            } a = sc.nextInt() a sc.nextInt() sc.nextInt sc operator = sc.next() operator sc.next() sc.next sc b = sc.nextInt() b sc.nextInt() sc.nextInt sc break; if (operator.equals("?")) {
                break;
 
            } else if (operator.equals("/")) {
                out = out + a / b + "\n";
 
            } else if (operator.equals("*")) {
                out = out + a * b + "\n";
 
            } else if (operator.equals("+")) {
                out = out + (a + b) + "\n";
 
            } else if (operator.equals("-")) {
                out = out + (a - b) + "\n";
            } operator.equals("?") operator.equals operator "?" {
                break;
 
            } break; if (operator.equals("/")) {
                out = out + a / b + "\n";
 
            } else if (operator.equals("*")) {
                out = out + a * b + "\n";
 
            } else if (operator.equals("+")) {
                out = out + (a + b) + "\n";
 
            } else if (operator.equals("-")) {
                out = out + (a - b) + "\n";
            } operator.equals("/") operator.equals operator "/" {
                out = out + a / b + "\n";
 
            } out = out + a / b + "\n" out out + a / b + "\n" out + a / b + "\n" out a / b a b "\n" if (operator.equals("*")) {
                out = out + a * b + "\n";
 
            } else if (operator.equals("+")) {
                out = out + (a + b) + "\n";
 
            } else if (operator.equals("-")) {
                out = out + (a - b) + "\n";
            } operator.equals("*") operator.equals operator "*" {
                out = out + a * b + "\n";
 
            } out = out + a * b + "\n" out out + a * b + "\n" out + a * b + "\n" out a * b a b "\n" if (operator.equals("+")) {
                out = out + (a + b) + "\n";
 
            } else if (operator.equals("-")) {
                out = out + (a - b) + "\n";
            } operator.equals("+") operator.equals operator "+" {
                out = out + (a + b) + "\n";
 
            } out = out + (a + b) + "\n" out out + (a + b) + "\n" out + (a + b) + "\n" out (a + b) a b "\n" if (operator.equals("-")) {
                out = out + (a - b) + "\n";
            } operator.equals("-") operator.equals operator "-" {
                out = out + (a - b) + "\n";
            } out = out + (a - b) + "\n" out out + (a - b) + "\n" out + (a - b) + "\n" out (a - b) a b "\n" System.out.print(out) System.out.print System.out System System.out out String[] args args public class Main{
 
    public static void main(String[] args) {
 
        int a = 0;
        String operator = "";
        int b = 0;
 
        // テキスト入力
        Scanner sc = new Scanner(System.in);
        String out = "";
 
        // 演算子の変数に入っている中身で場合わけ
        while (true) {
 
            //
            while (sc.hasNext()) {
                a = sc.nextInt();
                operator = sc.next();
                b = sc.nextInt();
                break;
            }
 
            if (operator.equals("?")) {
                break;
 
            } else if (operator.equals("/")) {
                out = out + a / b + "\n";
 
            } else if (operator.equals("*")) {
                out = out + a * b + "\n";
 
            } else if (operator.equals("+")) {
                out = out + (a + b) + "\n";
 
            } else if (operator.equals("-")) {
                out = out + (a - b) + "\n";
            }
        }
        // 出力
        System.out.print(out);
    }
} public class Main{
 
    public static void main(String[] args) {
 
        int a = 0;
        String operator = "";
        int b = 0;
 
        // テキスト入力
        Scanner sc = new Scanner(System.in);
        String out = "";
 
        // 演算子の変数に入っている中身で場合わけ
        while (true) {
 
            //
            while (sc.hasNext()) {
                a = sc.nextInt();
                operator = sc.next();
                b = sc.nextInt();
                break;
            }
 
            if (operator.equals("?")) {
                break;
 
            } else if (operator.equals("/")) {
                out = out + a / b + "\n";
 
            } else if (operator.equals("*")) {
                out = out + a * b + "\n";
 
            } else if (operator.equals("+")) {
                out = out + (a + b) + "\n";
 
            } else if (operator.equals("-")) {
                out = out + (a - b) + "\n";
            }
        }
        // 出力
        System.out.print(out);
    }
} Main
import java.util.Scanner;
 
public class Main{
 
    public static void main(String[] args) {
 
        int a = 0;
        String operator = "";
        int b = 0;
 
        // テキスト入力
        Scanner sc = new Scanner(System.in);
        String out = "";
 
        // 演算子の変数に入っている中身で場合わけ
        while (true) {
 
            //
            while (sc.hasNext()) {
                a = sc.nextInt();
                operator = sc.next();
                b = sc.nextInt();
                break;
            }
 
            if (operator.equals("?")) {
                break;
 
            } else if (operator.equals("/")) {
                out = out + a / b + "\n";
 
            } else if (operator.equals("*")) {
                out = out + a * b + "\n";
 
            } else if (operator.equals("+")) {
                out = out + (a + b) + "\n";
 
            } else if (operator.equals("-")) {
                out = out + (a - b) + "\n";
            }
        }
        // 出力
        System.out.print(out);
    }
}