import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(
            new InputStreamReader(System.in));
        StringBuilder strb = new StringBuilder();

        while (true) {
            String[] data = br.readLine().split(" ");
            int a = Integer.parseInt(data[0]);
            String op = data[1];
            int b = Integer.parseInt(data[2]);
            int result = 0;

            if (op.equals("?")) {
                break;
            } else 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;
            }
            strb.append(result).append("\n");
        }
        System.out.print(strb);
    }
} 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 {
        BufferedReader br = new BufferedReader(
            new InputStreamReader(System.in));
        StringBuilder strb = new StringBuilder();

        while (true) {
            String[] data = br.readLine().split(" ");
            int a = Integer.parseInt(data[0]);
            String op = data[1];
            int b = Integer.parseInt(data[2]);
            int result = 0;

            if (op.equals("?")) {
                break;
            } else 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;
            }
            strb.append(result).append("\n");
        }
        System.out.print(strb);
    }
} Main public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(
            new InputStreamReader(System.in));
        StringBuilder strb = new StringBuilder();

        while (true) {
            String[] data = br.readLine().split(" ");
            int a = Integer.parseInt(data[0]);
            String op = data[1];
            int b = Integer.parseInt(data[2]);
            int result = 0;

            if (op.equals("?")) {
                break;
            } else 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;
            }
            strb.append(result).append("\n");
        }
        System.out.print(strb);
    } main {
        BufferedReader br = new BufferedReader(
            new InputStreamReader(System.in));
        StringBuilder strb = new StringBuilder();

        while (true) {
            String[] data = br.readLine().split(" ");
            int a = Integer.parseInt(data[0]);
            String op = data[1];
            int b = Integer.parseInt(data[2]);
            int result = 0;

            if (op.equals("?")) {
                break;
            } else 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;
            }
            strb.append(result).append("\n");
        }
        System.out.print(strb);
    } BufferedReader br = new BufferedReader(
            new InputStreamReader(System.in)); br new BufferedReader(
            new InputStreamReader(System.in)) StringBuilder strb = new StringBuilder(); strb new StringBuilder() while (true) {
            String[] data = br.readLine().split(" ");
            int a = Integer.parseInt(data[0]);
            String op = data[1];
            int b = Integer.parseInt(data[2]);
            int result = 0;

            if (op.equals("?")) {
                break;
            } else 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;
            }
            strb.append(result).append("\n");
        } true {
            String[] data = br.readLine().split(" ");
            int a = Integer.parseInt(data[0]);
            String op = data[1];
            int b = Integer.parseInt(data[2]);
            int result = 0;

            if (op.equals("?")) {
                break;
            } else 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;
            }
            strb.append(result).append("\n");
        } String[] data = br.readLine().split(" "); data br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int a = Integer.parseInt(data[0]); a Integer.parseInt(data[0]) Integer.parseInt Integer data[0] data 0 String op = data[1]; op data[1] data 1 int b = Integer.parseInt(data[2]); b Integer.parseInt(data[2]) Integer.parseInt Integer data[2] data 2 int result = 0; result 0 if (op.equals("?")) {
                break;
            } else 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;
            } 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;
            } 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;
            } 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;
            } op.equals("*") op.equals op "*" {
                result = a * b;
            } result = a * b result a * b a b if (op.equals("/")) {
                result = a / b;
            } op.equals("/") op.equals op "/" {
                result = a / b;
            } result = a / b result a / b a b strb.append(result).append("\n") strb.append(result).append strb.append(result) strb.append strb result "\n" System.out.print(strb) System.out.print System.out System System.out strb String[] args args public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(
            new InputStreamReader(System.in));
        StringBuilder strb = new StringBuilder();

        while (true) {
            String[] data = br.readLine().split(" ");
            int a = Integer.parseInt(data[0]);
            String op = data[1];
            int b = Integer.parseInt(data[2]);
            int result = 0;

            if (op.equals("?")) {
                break;
            } else 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;
            }
            strb.append(result).append("\n");
        }
        System.out.print(strb);
    }
} public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(
            new InputStreamReader(System.in));
        StringBuilder strb = new StringBuilder();

        while (true) {
            String[] data = br.readLine().split(" ");
            int a = Integer.parseInt(data[0]);
            String op = data[1];
            int b = Integer.parseInt(data[2]);
            int result = 0;

            if (op.equals("?")) {
                break;
            } else 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;
            }
            strb.append(result).append("\n");
        }
        System.out.print(strb);
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(
            new InputStreamReader(System.in));
        StringBuilder strb = new StringBuilder();

        while (true) {
            String[] data = br.readLine().split(" ");
            int a = Integer.parseInt(data[0]);
            String op = data[1];
            int b = Integer.parseInt(data[2]);
            int result = 0;

            if (op.equals("?")) {
                break;
            } else 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;
            }
            strb.append(result).append("\n");
        }
        System.out.print(strb);
    }
}