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

public class Main {

    private static final String LINE_SEPARATOR = System.getProperty("line.separator");

    public static void main(String[] args) {
        System.out.println(process(readAll(System.in)));
    }

    protected static String process(String data) {
        final String[] lines = splitForLines(data);

        StringBuilder sb = new StringBuilder();
        for (String s : lines) {

            final Input input = Input.valueOf(s);

            Integer result = null;

            switch (input.operator) {
                case ADD:
                    result = input.a + input.b;
                    break;
                case SUBTRACT:
                    result = input.a - input.b;
                    break;
                case MULTIPLY:
                    result = input.a * input.b;
                    break;
                case DIVIDE:
                    result = input.a / input.b;
                    break;
            }

            if (result == null) {
                continue;
            }

            if (sb.length() > 0) {
                sb.append(LINE_SEPARATOR);
            }

            sb.append(result);
        }

        return sb.toString();
    }

    private static String readAll(InputStream is) {
        InputStreamReader r = null;
        BufferedReader br = null;

        try {
            r = new InputStreamReader(is);
            br = new BufferedReader(r);
            StringBuilder sb = new StringBuilder();
            String s;

            while ((s = br.readLine()) != null) {
                sb.append(s).append('\n');
            }

            return sb.toString();
        } catch (IOException e) {
            throw new RuntimeException(e);
        } finally {
            if (br != null) {
                try {
                    br.close();
                } catch (IOException e) {
                }
            }
            if (r != null) {
                try {
                    r.close();
                } catch (IOException e) {
                }
            }
        }
    }

    static class Input {
        final int a;
        final int b;
        final Operator operator;

        Input(int a, int b, Operator operator) {
            this.a = a;
            this.b = b;
            this.operator = operator;
        }

        static Input valueOf(String line) {
            final String[] split = line.split(" ");
            final int a = Integer.parseInt(split[0]);
            final Operator op;

            if ("+".equals(split[1])) {
                op = Operator.ADD;
            } else if ("-".equals(split[1])) {
                op = Operator.SUBTRACT;
            } else if ("*".equals(split[1])) {
                op = Operator.MULTIPLY;
            } else if ("/".equals(split[1])) {
                op = Operator.DIVIDE;
            } else if ("?".equals(split[1])) {
                op = Operator.END;
            } else {
                throw new IllegalArgumentException(split[1]);
            }

            final int b = Integer.parseInt(split[2]);

            return new Input(a, b, op);
        }
    }

    enum Operator {
        ADD, SUBTRACT, MULTIPLY, DIVIDE, END
    }

    private static String[] splitForLines(String lines) {
        return lines.split("\\n");
    }

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStream; InputStream java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

    private static final String LINE_SEPARATOR = System.getProperty("line.separator");

    public static void main(String[] args) {
        System.out.println(process(readAll(System.in)));
    }

    protected static String process(String data) {
        final String[] lines = splitForLines(data);

        StringBuilder sb = new StringBuilder();
        for (String s : lines) {

            final Input input = Input.valueOf(s);

            Integer result = null;

            switch (input.operator) {
                case ADD:
                    result = input.a + input.b;
                    break;
                case SUBTRACT:
                    result = input.a - input.b;
                    break;
                case MULTIPLY:
                    result = input.a * input.b;
                    break;
                case DIVIDE:
                    result = input.a / input.b;
                    break;
            }

            if (result == null) {
                continue;
            }

            if (sb.length() > 0) {
                sb.append(LINE_SEPARATOR);
            }

            sb.append(result);
        }

        return sb.toString();
    }

    private static String readAll(InputStream is) {
        InputStreamReader r = null;
        BufferedReader br = null;

        try {
            r = new InputStreamReader(is);
            br = new BufferedReader(r);
            StringBuilder sb = new StringBuilder();
            String s;

            while ((s = br.readLine()) != null) {
                sb.append(s).append('\n');
            }

            return sb.toString();
        } catch (IOException e) {
            throw new RuntimeException(e);
        } finally {
            if (br != null) {
                try {
                    br.close();
                } catch (IOException e) {
                }
            }
            if (r != null) {
                try {
                    r.close();
                } catch (IOException e) {
                }
            }
        }
    }

    static class Input {
        final int a;
        final int b;
        final Operator operator;

        Input(int a, int b, Operator operator) {
            this.a = a;
            this.b = b;
            this.operator = operator;
        }

        static Input valueOf(String line) {
            final String[] split = line.split(" ");
            final int a = Integer.parseInt(split[0]);
            final Operator op;

            if ("+".equals(split[1])) {
                op = Operator.ADD;
            } else if ("-".equals(split[1])) {
                op = Operator.SUBTRACT;
            } else if ("*".equals(split[1])) {
                op = Operator.MULTIPLY;
            } else if ("/".equals(split[1])) {
                op = Operator.DIVIDE;
            } else if ("?".equals(split[1])) {
                op = Operator.END;
            } else {
                throw new IllegalArgumentException(split[1]);
            }

            final int b = Integer.parseInt(split[2]);

            return new Input(a, b, op);
        }
    }

    enum Operator {
        ADD, SUBTRACT, MULTIPLY, DIVIDE, END
    }

    private static String[] splitForLines(String lines) {
        return lines.split("\\n");
    }

} Main private static final String LINE_SEPARATOR = System.getProperty("line.separator"); LINE_SEPARATOR System.getProperty("line.separator") System.getProperty System "line.separator" public static void main(String[] args) {
        System.out.println(process(readAll(System.in)));
    } main {
        System.out.println(process(readAll(System.in)));
    } System.out.println(process(readAll(System.in))) System.out.println System.out System System.out process(readAll(System.in)) process readAll(System.in) readAll System.in System System.in String[] args args protected static String process(String data) {
        final String[] lines = splitForLines(data);

        StringBuilder sb = new StringBuilder();
        for (String s : lines) {

            final Input input = Input.valueOf(s);

            Integer result = null;

            switch (input.operator) {
                case ADD:
                    result = input.a + input.b;
                    break;
                case SUBTRACT:
                    result = input.a - input.b;
                    break;
                case MULTIPLY:
                    result = input.a * input.b;
                    break;
                case DIVIDE:
                    result = input.a / input.b;
                    break;
            }

            if (result == null) {
                continue;
            }

            if (sb.length() > 0) {
                sb.append(LINE_SEPARATOR);
            }

            sb.append(result);
        }

        return sb.toString();
    } process {
        final String[] lines = splitForLines(data);

        StringBuilder sb = new StringBuilder();
        for (String s : lines) {

            final Input input = Input.valueOf(s);

            Integer result = null;

            switch (input.operator) {
                case ADD:
                    result = input.a + input.b;
                    break;
                case SUBTRACT:
                    result = input.a - input.b;
                    break;
                case MULTIPLY:
                    result = input.a * input.b;
                    break;
                case DIVIDE:
                    result = input.a / input.b;
                    break;
            }

            if (result == null) {
                continue;
            }

            if (sb.length() > 0) {
                sb.append(LINE_SEPARATOR);
            }

            sb.append(result);
        }

        return sb.toString();
    } final String[] lines = splitForLines(data); lines splitForLines(data) splitForLines data StringBuilder sb = new StringBuilder(); sb new StringBuilder() for (String s : lines) {

            final Input input = Input.valueOf(s);

            Integer result = null;

            switch (input.operator) {
                case ADD:
                    result = input.a + input.b;
                    break;
                case SUBTRACT:
                    result = input.a - input.b;
                    break;
                case MULTIPLY:
                    result = input.a * input.b;
                    break;
                case DIVIDE:
                    result = input.a / input.b;
                    break;
            }

            if (result == null) {
                continue;
            }

            if (sb.length() > 0) {
                sb.append(LINE_SEPARATOR);
            }

            sb.append(result);
        } String s lines {

            final Input input = Input.valueOf(s);

            Integer result = null;

            switch (input.operator) {
                case ADD:
                    result = input.a + input.b;
                    break;
                case SUBTRACT:
                    result = input.a - input.b;
                    break;
                case MULTIPLY:
                    result = input.a * input.b;
                    break;
                case DIVIDE:
                    result = input.a / input.b;
                    break;
            }

            if (result == null) {
                continue;
            }

            if (sb.length() > 0) {
                sb.append(LINE_SEPARATOR);
            }

            sb.append(result);
        } {

            final Input input = Input.valueOf(s);

            Integer result = null;

            switch (input.operator) {
                case ADD:
                    result = input.a + input.b;
                    break;
                case SUBTRACT:
                    result = input.a - input.b;
                    break;
                case MULTIPLY:
                    result = input.a * input.b;
                    break;
                case DIVIDE:
                    result = input.a / input.b;
                    break;
            }

            if (result == null) {
                continue;
            }

            if (sb.length() > 0) {
                sb.append(LINE_SEPARATOR);
            }

            sb.append(result);
        } final Input input = Input.valueOf(s); input Input.valueOf(s) Input.valueOf Input s Integer result = null; result null switch (input.operator) {
                case ADD:
                    result = input.a + input.b;
                    break;
                case SUBTRACT:
                    result = input.a - input.b;
                    break;
                case MULTIPLY:
                    result = input.a * input.b;
                    break;
                case DIVIDE:
                    result = input.a / input.b;
                    break;
            } input.operator input input.operator case ADD: ADD case ADD: result = input.a + input.b result input.a + input.b input.a input input.a input.b input input.b break; case SUBTRACT: SUBTRACT case SUBTRACT: result = input.a - input.b result input.a - input.b input.a input input.a input.b input input.b break; case MULTIPLY: MULTIPLY case MULTIPLY: result = input.a * input.b result input.a * input.b input.a input input.a input.b input input.b break; case DIVIDE: DIVIDE case DIVIDE: result = input.a / input.b result input.a / input.b input.a input input.a input.b input input.b break; if (result == null) {
                continue;
            } result == null result null {
                continue;
            } continue; if (sb.length() > 0) {
                sb.append(LINE_SEPARATOR);
            } sb.length() > 0 sb.length() sb.length sb 0 {
                sb.append(LINE_SEPARATOR);
            } sb.append(LINE_SEPARATOR) sb.append sb LINE_SEPARATOR sb.append(result) sb.append sb result return sb.toString(); sb.toString() sb.toString sb String data data private static String readAll(InputStream is) {
        InputStreamReader r = null;
        BufferedReader br = null;

        try {
            r = new InputStreamReader(is);
            br = new BufferedReader(r);
            StringBuilder sb = new StringBuilder();
            String s;

            while ((s = br.readLine()) != null) {
                sb.append(s).append('\n');
            }

            return sb.toString();
        } catch (IOException e) {
            throw new RuntimeException(e);
        } finally {
            if (br != null) {
                try {
                    br.close();
                } catch (IOException e) {
                }
            }
            if (r != null) {
                try {
                    r.close();
                } catch (IOException e) {
                }
            }
        }
    } readAll {
        InputStreamReader r = null;
        BufferedReader br = null;

        try {
            r = new InputStreamReader(is);
            br = new BufferedReader(r);
            StringBuilder sb = new StringBuilder();
            String s;

            while ((s = br.readLine()) != null) {
                sb.append(s).append('\n');
            }

            return sb.toString();
        } catch (IOException e) {
            throw new RuntimeException(e);
        } finally {
            if (br != null) {
                try {
                    br.close();
                } catch (IOException e) {
                }
            }
            if (r != null) {
                try {
                    r.close();
                } catch (IOException e) {
                }
            }
        }
    } InputStreamReader r = null; r null BufferedReader br = null; br null try {
            r = new InputStreamReader(is);
            br = new BufferedReader(r);
            StringBuilder sb = new StringBuilder();
            String s;

            while ((s = br.readLine()) != null) {
                sb.append(s).append('\n');
            }

            return sb.toString();
        } catch (IOException e) {
            throw new RuntimeException(e);
        } finally {
            if (br != null) {
                try {
                    br.close();
                } catch (IOException e) {
                }
            }
            if (r != null) {
                try {
                    r.close();
                } catch (IOException e) {
                }
            }
        } catch (IOException e) {
            throw new RuntimeException(e);
        } IOException e {
            throw new RuntimeException(e);
        } throw new RuntimeException(e); new RuntimeException(e) {
            if (br != null) {
                try {
                    br.close();
                } catch (IOException e) {
                }
            }
            if (r != null) {
                try {
                    r.close();
                } catch (IOException e) {
                }
            }
        } if (br != null) {
                try {
                    br.close();
                } catch (IOException e) {
                }
            } br != null br null {
                try {
                    br.close();
                } catch (IOException e) {
                }
            } try {
                    br.close();
                } catch (IOException e) {
                } catch (IOException e) {
                } IOException e {
                } {
                    br.close();
                } br.close() br.close br if (r != null) {
                try {
                    r.close();
                } catch (IOException e) {
                }
            } r != null r null {
                try {
                    r.close();
                } catch (IOException e) {
                }
            } try {
                    r.close();
                } catch (IOException e) {
                } catch (IOException e) {
                } IOException e {
                } {
                    r.close();
                } r.close() r.close r {
            r = new InputStreamReader(is);
            br = new BufferedReader(r);
            StringBuilder sb = new StringBuilder();
            String s;

            while ((s = br.readLine()) != null) {
                sb.append(s).append('\n');
            }

            return sb.toString();
        } r = new InputStreamReader(is) r new InputStreamReader(is) br = new BufferedReader(r) br new BufferedReader(r) StringBuilder sb = new StringBuilder(); sb new StringBuilder() String s; s while ((s = br.readLine()) != null) {
                sb.append(s).append('\n');
            } (s = br.readLine()) != null (s = br.readLine()) s br.readLine() br.readLine br null {
                sb.append(s).append('\n');
            } sb.append(s).append('\n') sb.append(s).append sb.append(s) sb.append sb s '\n' return sb.toString(); sb.toString() sb.toString sb InputStream is is private static String[] splitForLines(String lines) {
        return lines.split("\\n");
    } splitForLines {
        return lines.split("\\n");
    } return lines.split("\\n"); lines.split("\\n") lines.split lines "\\n" String lines lines static class Input {
        final int a;
        final int b;
        final Operator operator;

        Input(int a, int b, Operator operator) {
            this.a = a;
            this.b = b;
            this.operator = operator;
        }

        static Input valueOf(String line) {
            final String[] split = line.split(" ");
            final int a = Integer.parseInt(split[0]);
            final Operator op;

            if ("+".equals(split[1])) {
                op = Operator.ADD;
            } else if ("-".equals(split[1])) {
                op = Operator.SUBTRACT;
            } else if ("*".equals(split[1])) {
                op = Operator.MULTIPLY;
            } else if ("/".equals(split[1])) {
                op = Operator.DIVIDE;
            } else if ("?".equals(split[1])) {
                op = Operator.END;
            } else {
                throw new IllegalArgumentException(split[1]);
            }

            final int b = Integer.parseInt(split[2]);

            return new Input(a, b, op);
        }
    } Input final int a; a final int b; b final Operator operator; operator Input(int a, int b, Operator operator) {
            this.a = a;
            this.b = b;
            this.operator = operator;
        } Input {
            this.a = a;
            this.b = b;
            this.operator = operator;
        } this.a = a this.a this this.a a this.b = b this.b this this.b b this.operator = operator this.operator this this.operator operator int a a int b b Operator operator operator static Input valueOf(String line) {
            final String[] split = line.split(" ");
            final int a = Integer.parseInt(split[0]);
            final Operator op;

            if ("+".equals(split[1])) {
                op = Operator.ADD;
            } else if ("-".equals(split[1])) {
                op = Operator.SUBTRACT;
            } else if ("*".equals(split[1])) {
                op = Operator.MULTIPLY;
            } else if ("/".equals(split[1])) {
                op = Operator.DIVIDE;
            } else if ("?".equals(split[1])) {
                op = Operator.END;
            } else {
                throw new IllegalArgumentException(split[1]);
            }

            final int b = Integer.parseInt(split[2]);

            return new Input(a, b, op);
        } valueOf {
            final String[] split = line.split(" ");
            final int a = Integer.parseInt(split[0]);
            final Operator op;

            if ("+".equals(split[1])) {
                op = Operator.ADD;
            } else if ("-".equals(split[1])) {
                op = Operator.SUBTRACT;
            } else if ("*".equals(split[1])) {
                op = Operator.MULTIPLY;
            } else if ("/".equals(split[1])) {
                op = Operator.DIVIDE;
            } else if ("?".equals(split[1])) {
                op = Operator.END;
            } else {
                throw new IllegalArgumentException(split[1]);
            }

            final int b = Integer.parseInt(split[2]);

            return new Input(a, b, op);
        } final String[] split = line.split(" "); split line.split(" ") line.split line " " final int a = Integer.parseInt(split[0]); a Integer.parseInt(split[0]) Integer.parseInt Integer split[0] split 0 final Operator op; op if ("+".equals(split[1])) {
                op = Operator.ADD;
            } else if ("-".equals(split[1])) {
                op = Operator.SUBTRACT;
            } else if ("*".equals(split[1])) {
                op = Operator.MULTIPLY;
            } else if ("/".equals(split[1])) {
                op = Operator.DIVIDE;
            } else if ("?".equals(split[1])) {
                op = Operator.END;
            } else {
                throw new IllegalArgumentException(split[1]);
            } "+".equals(split[1]) "+".equals "+" split[1] split 1 {
                op = Operator.ADD;
            } op = Operator.ADD op Operator.ADD Operator Operator.ADD if ("-".equals(split[1])) {
                op = Operator.SUBTRACT;
            } else if ("*".equals(split[1])) {
                op = Operator.MULTIPLY;
            } else if ("/".equals(split[1])) {
                op = Operator.DIVIDE;
            } else if ("?".equals(split[1])) {
                op = Operator.END;
            } else {
                throw new IllegalArgumentException(split[1]);
            } "-".equals(split[1]) "-".equals "-" split[1] split 1 {
                op = Operator.SUBTRACT;
            } op = Operator.SUBTRACT op Operator.SUBTRACT Operator Operator.SUBTRACT if ("*".equals(split[1])) {
                op = Operator.MULTIPLY;
            } else if ("/".equals(split[1])) {
                op = Operator.DIVIDE;
            } else if ("?".equals(split[1])) {
                op = Operator.END;
            } else {
                throw new IllegalArgumentException(split[1]);
            } "*".equals(split[1]) "*".equals "*" split[1] split 1 {
                op = Operator.MULTIPLY;
            } op = Operator.MULTIPLY op Operator.MULTIPLY Operator Operator.MULTIPLY if ("/".equals(split[1])) {
                op = Operator.DIVIDE;
            } else if ("?".equals(split[1])) {
                op = Operator.END;
            } else {
                throw new IllegalArgumentException(split[1]);
            } "/".equals(split[1]) "/".equals "/" split[1] split 1 {
                op = Operator.DIVIDE;
            } op = Operator.DIVIDE op Operator.DIVIDE Operator Operator.DIVIDE if ("?".equals(split[1])) {
                op = Operator.END;
            } else {
                throw new IllegalArgumentException(split[1]);
            } "?".equals(split[1]) "?".equals "?" split[1] split 1 {
                op = Operator.END;
            } op = Operator.END op Operator.END Operator Operator.END {
                throw new IllegalArgumentException(split[1]);
            } throw new IllegalArgumentException(split[1]); new IllegalArgumentException(split[1]) final int b = Integer.parseInt(split[2]); b Integer.parseInt(split[2]) Integer.parseInt Integer split[2] split 2 return new Input(a, b, op); new Input(a, b, op) String line line enum Operator {
        ADD, SUBTRACT, MULTIPLY, DIVIDE, END
    } Operator ADD ADD SUBTRACT SUBTRACT MULTIPLY MULTIPLY DIVIDE DIVIDE END END import java.io.BufferedReader;
import import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java. public class Main {

    private static final String LINE_SEPARATOR = System.getProperty("line.separator");

    public static void main(String[] args) {
        System.out.println(process(readAll(System.in)));
    }

    protected static String process(String data) {
        final String[] lines = splitForLines(data);

        StringBuilder sb = new StringBuilder();
        for (String s : lines) {

            final Input input = Input.valueOf(s);

            Integer result = null;

            switch (input.operator) {
                case ADD:
                    result = input.a + input.b;
                    break;
                case SUBTRACT:
                    result = input.a - input.b;
                    break;
                case MULTIPLY:
                    result = input.a * input.b;
                    break;
                case DIVIDE:
                    result = input.a / input.b;
                    break;
            }

            if (result == null) {
                continue;
            }

            if (sb.length() > 0) {
                sb.append(LINE_SEPARATOR);
            }

            sb.append(result);
        }

        return sb.toString();
    }

    private static String readAll(InputStream is) {
        InputStreamReader r = null;
        BufferedReader br = null;

        try {
            r = new InputStreamReader(is);
            br = new BufferedReader(r);
            StringBuilder sb = new StringBuilder();
            String s;

            while ((s = br.readLine()) != null) {
                sb.append(s).append('\n');
            }

            return sb.toString();
        } catch (IOException e) {
            throw new RuntimeException(e);
        } finally {
            if (br != null) {
                try {
                    br.close();
                } catch (IOException e) {
                }
            }
            if (r != null) {
                try {
                    r.close();
                } catch (IOException e) {
                }
            }
        }
    }

    static class Input {
        final int a;
        final int b;
        final Operator operator;

        Input(int a, int b, Operator operator) {
            this.a = a;
            this.b = b;
            this.operator = operator;
        }

        static Input valueOf(String line) {
            final String[] split = line.split(" ");
            final int a = Integer.parseInt(split[0]);
            final Operator op;

            if ("+".equals(split[1])) {
                op = Operator.ADD;
            } else if ("-".equals(split[1])) {
                op = Operator.SUBTRACT;
            } else if ("*".equals(split[1])) {
                op = Operator.MULTIPLY;
            } else if ("/".equals(split[1])) {
                op = Operator.DIVIDE;
            } else if ("?".equals(split[1])) {
                op = Operator.END;
            } else {
                throw new IllegalArgumentException(split[1]);
            }

            final int b = Integer.parseInt(split[2]);

            return new Input(a, b, op);
        }
    }

    enum Operator {
        ADD, SUBTRACT, MULTIPLY, DIVIDE, END
    }

    private static String[] splitForLines(String lines) {
        return lines.split("\\n");
    }

} public class Main {

    private static final String LINE_SEPARATOR = System.getProperty("line.separator");

    public static void main(String[] args) {
        System.out.println(process(readAll(System.in)));
    }

    protected static String process(String data) {
        final String[] lines = splitForLines(data);

        StringBuilder sb = new StringBuilder();
        for (String s : lines) {

            final Input input = Input.valueOf(s);

            Integer result = null;

            switch (input.operator) {
                case ADD:
                    result = input.a + input.b;
                    break;
                case SUBTRACT:
                    result = input.a - input.b;
                    break;
                case MULTIPLY:
                    result = input.a * input.b;
                    break;
                case DIVIDE:
                    result = input.a / input.b;
                    break;
            }

            if (result == null) {
                continue;
            }

            if (sb.length() > 0) {
                sb.append(LINE_SEPARATOR);
            }

            sb.append(result);
        }

        return sb.toString();
    }

    private static String readAll(InputStream is) {
        InputStreamReader r = null;
        BufferedReader br = null;

        try {
            r = new InputStreamReader(is);
            br = new BufferedReader(r);
            StringBuilder sb = new StringBuilder();
            String s;

            while ((s = br.readLine()) != null) {
                sb.append(s).append('\n');
            }

            return sb.toString();
        } catch (IOException e) {
            throw new RuntimeException(e);
        } finally {
            if (br != null) {
                try {
                    br.close();
                } catch (IOException e) {
                }
            }
            if (r != null) {
                try {
                    r.close();
                } catch (IOException e) {
                }
            }
        }
    }

    static class Input {
        final int a;
        final int b;
        final Operator operator;

        Input(int a, int b, Operator operator) {
            this.a = a;
            this.b = b;
            this.operator = operator;
        }

        static Input valueOf(String line) {
            final String[] split = line.split(" ");
            final int a = Integer.parseInt(split[0]);
            final Operator op;

            if ("+".equals(split[1])) {
                op = Operator.ADD;
            } else if ("-".equals(split[1])) {
                op = Operator.SUBTRACT;
            } else if ("*".equals(split[1])) {
                op = Operator.MULTIPLY;
            } else if ("/".equals(split[1])) {
                op = Operator.DIVIDE;
            } else if ("?".equals(split[1])) {
                op = Operator.END;
            } else {
                throw new IllegalArgumentException(split[1]);
            }

            final int b = Integer.parseInt(split[2]);

            return new Input(a, b, op);
        }
    }

    enum Operator {
        ADD, SUBTRACT, MULTIPLY, DIVIDE, END
    }

    private static String[] splitForLines(String lines) {
        return lines.split("\\n");
    }

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;

public class Main {

    private static final String LINE_SEPARATOR = System.getProperty("line.separator");

    public static void main(String[] args) {
        System.out.println(process(readAll(System.in)));
    }

    protected static String process(String data) {
        final String[] lines = splitForLines(data);

        StringBuilder sb = new StringBuilder();
        for (String s : lines) {

            final Input input = Input.valueOf(s);

            Integer result = null;

            switch (input.operator) {
                case ADD:
                    result = input.a + input.b;
                    break;
                case SUBTRACT:
                    result = input.a - input.b;
                    break;
                case MULTIPLY:
                    result = input.a * input.b;
                    break;
                case DIVIDE:
                    result = input.a / input.b;
                    break;
            }

            if (result == null) {
                continue;
            }

            if (sb.length() > 0) {
                sb.append(LINE_SEPARATOR);
            }

            sb.append(result);
        }

        return sb.toString();
    }

    private static String readAll(InputStream is) {
        InputStreamReader r = null;
        BufferedReader br = null;

        try {
            r = new InputStreamReader(is);
            br = new BufferedReader(r);
            StringBuilder sb = new StringBuilder();
            String s;

            while ((s = br.readLine()) != null) {
                sb.append(s).append('\n');
            }

            return sb.toString();
        } catch (IOException e) {
            throw new RuntimeException(e);
        } finally {
            if (br != null) {
                try {
                    br.close();
                } catch (IOException e) {
                }
            }
            if (r != null) {
                try {
                    r.close();
                } catch (IOException e) {
                }
            }
        }
    }

    static class Input {
        final int a;
        final int b;
        final Operator operator;

        Input(int a, int b, Operator operator) {
            this.a = a;
            this.b = b;
            this.operator = operator;
        }

        static Input valueOf(String line) {
            final String[] split = line.split(" ");
            final int a = Integer.parseInt(split[0]);
            final Operator op;

            if ("+".equals(split[1])) {
                op = Operator.ADD;
            } else if ("-".equals(split[1])) {
                op = Operator.SUBTRACT;
            } else if ("*".equals(split[1])) {
                op = Operator.MULTIPLY;
            } else if ("/".equals(split[1])) {
                op = Operator.DIVIDE;
            } else if ("?".equals(split[1])) {
                op = Operator.END;
            } else {
                throw new IllegalArgumentException(split[1]);
            }

            final int b = Integer.parseInt(split[2]);

            return new Input(a, b, op);
        }
    }

    enum Operator {
        ADD, SUBTRACT, MULTIPLY, DIVIDE, END
    }

    private static String[] splitForLines(String lines) {
        return lines.split("\\n");
    }

}