import java.util.NoSuchElementException;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        try {
            while (sc.hasNext()) {
                String[] a_op_b = sc.nextLine().split(" ");
                if (a_op_b.length != 3) {
                    throw new InvalidTestCaseException();
                }
                String op = a_op_b[1];
                int a = Integer.parseInt(a_op_b[0]);
                int b = Integer.parseInt(a_op_b[2]);
                if (op.equals("+")) {
                    System.out.println(a + b);
                } else if (op.equals("-")) {
                    System.out.println(a - b);
                } else if (op.equals("*")) {
                    System.out.println(a * b);
                } else if (op.equals("/")) {
                    System.out.println(a / b);
                } else if (op.equals("?")) {
                    break;
                }
            }
        } catch (InvalidTestCaseException
                | NoSuchElementException
                | NumberFormatException e) {
            System.out.println(e);
        }
    }

    private static class InvalidTestCaseException extends RuntimeException {
        InvalidTestCaseException() {
            super("Condition is invalid.");
        }
    }
}
 import java.util.NoSuchElementException; NoSuchElementException java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        try {
            while (sc.hasNext()) {
                String[] a_op_b = sc.nextLine().split(" ");
                if (a_op_b.length != 3) {
                    throw new InvalidTestCaseException();
                }
                String op = a_op_b[1];
                int a = Integer.parseInt(a_op_b[0]);
                int b = Integer.parseInt(a_op_b[2]);
                if (op.equals("+")) {
                    System.out.println(a + b);
                } else if (op.equals("-")) {
                    System.out.println(a - b);
                } else if (op.equals("*")) {
                    System.out.println(a * b);
                } else if (op.equals("/")) {
                    System.out.println(a / b);
                } else if (op.equals("?")) {
                    break;
                }
            }
        } catch (InvalidTestCaseException
                | NoSuchElementException
                | NumberFormatException e) {
            System.out.println(e);
        }
    }

    private static class InvalidTestCaseException extends RuntimeException {
        InvalidTestCaseException() {
            super("Condition is invalid.");
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        try {
            while (sc.hasNext()) {
                String[] a_op_b = sc.nextLine().split(" ");
                if (a_op_b.length != 3) {
                    throw new InvalidTestCaseException();
                }
                String op = a_op_b[1];
                int a = Integer.parseInt(a_op_b[0]);
                int b = Integer.parseInt(a_op_b[2]);
                if (op.equals("+")) {
                    System.out.println(a + b);
                } else if (op.equals("-")) {
                    System.out.println(a - b);
                } else if (op.equals("*")) {
                    System.out.println(a * b);
                } else if (op.equals("/")) {
                    System.out.println(a / b);
                } else if (op.equals("?")) {
                    break;
                }
            }
        } catch (InvalidTestCaseException
                | NoSuchElementException
                | NumberFormatException e) {
            System.out.println(e);
        }
    } main {
        Scanner sc = new Scanner(System.in);
        try {
            while (sc.hasNext()) {
                String[] a_op_b = sc.nextLine().split(" ");
                if (a_op_b.length != 3) {
                    throw new InvalidTestCaseException();
                }
                String op = a_op_b[1];
                int a = Integer.parseInt(a_op_b[0]);
                int b = Integer.parseInt(a_op_b[2]);
                if (op.equals("+")) {
                    System.out.println(a + b);
                } else if (op.equals("-")) {
                    System.out.println(a - b);
                } else if (op.equals("*")) {
                    System.out.println(a * b);
                } else if (op.equals("/")) {
                    System.out.println(a / b);
                } else if (op.equals("?")) {
                    break;
                }
            }
        } catch (InvalidTestCaseException
                | NoSuchElementException
                | NumberFormatException e) {
            System.out.println(e);
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) try {
            while (sc.hasNext()) {
                String[] a_op_b = sc.nextLine().split(" ");
                if (a_op_b.length != 3) {
                    throw new InvalidTestCaseException();
                }
                String op = a_op_b[1];
                int a = Integer.parseInt(a_op_b[0]);
                int b = Integer.parseInt(a_op_b[2]);
                if (op.equals("+")) {
                    System.out.println(a + b);
                } else if (op.equals("-")) {
                    System.out.println(a - b);
                } else if (op.equals("*")) {
                    System.out.println(a * b);
                } else if (op.equals("/")) {
                    System.out.println(a / b);
                } else if (op.equals("?")) {
                    break;
                }
            }
        } catch (InvalidTestCaseException
                | NoSuchElementException
                | NumberFormatException e) {
            System.out.println(e);
        } catch (InvalidTestCaseException
                | NoSuchElementException
                | NumberFormatException e) {
            System.out.println(e);
        } InvalidTestCaseException
                | NoSuchElementException
                | NumberFormatException e {
            System.out.println(e);
        } System.out.println(e) System.out.println System.out System System.out e {
            while (sc.hasNext()) {
                String[] a_op_b = sc.nextLine().split(" ");
                if (a_op_b.length != 3) {
                    throw new InvalidTestCaseException();
                }
                String op = a_op_b[1];
                int a = Integer.parseInt(a_op_b[0]);
                int b = Integer.parseInt(a_op_b[2]);
                if (op.equals("+")) {
                    System.out.println(a + b);
                } else if (op.equals("-")) {
                    System.out.println(a - b);
                } else if (op.equals("*")) {
                    System.out.println(a * b);
                } else if (op.equals("/")) {
                    System.out.println(a / b);
                } else if (op.equals("?")) {
                    break;
                }
            }
        } while (sc.hasNext()) {
                String[] a_op_b = sc.nextLine().split(" ");
                if (a_op_b.length != 3) {
                    throw new InvalidTestCaseException();
                }
                String op = a_op_b[1];
                int a = Integer.parseInt(a_op_b[0]);
                int b = Integer.parseInt(a_op_b[2]);
                if (op.equals("+")) {
                    System.out.println(a + b);
                } else if (op.equals("-")) {
                    System.out.println(a - b);
                } else if (op.equals("*")) {
                    System.out.println(a * b);
                } else if (op.equals("/")) {
                    System.out.println(a / b);
                } else if (op.equals("?")) {
                    break;
                }
            } sc.hasNext() sc.hasNext sc {
                String[] a_op_b = sc.nextLine().split(" ");
                if (a_op_b.length != 3) {
                    throw new InvalidTestCaseException();
                }
                String op = a_op_b[1];
                int a = Integer.parseInt(a_op_b[0]);
                int b = Integer.parseInt(a_op_b[2]);
                if (op.equals("+")) {
                    System.out.println(a + b);
                } else if (op.equals("-")) {
                    System.out.println(a - b);
                } else if (op.equals("*")) {
                    System.out.println(a * b);
                } else if (op.equals("/")) {
                    System.out.println(a / b);
                } else if (op.equals("?")) {
                    break;
                }
            } String[] a_op_b = sc.nextLine().split(" "); a_op_b sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " if (a_op_b.length != 3) {
                    throw new InvalidTestCaseException();
                } a_op_b.length != 3 a_op_b.length a_op_b a_op_b.length 3 {
                    throw new InvalidTestCaseException();
                } throw new InvalidTestCaseException(); new InvalidTestCaseException() String op = a_op_b[1]; op a_op_b[1] a_op_b 1 int a = Integer.parseInt(a_op_b[0]); a Integer.parseInt(a_op_b[0]) Integer.parseInt Integer a_op_b[0] a_op_b 0 int b = Integer.parseInt(a_op_b[2]); b Integer.parseInt(a_op_b[2]) Integer.parseInt Integer a_op_b[2] a_op_b 2 if (op.equals("+")) {
                    System.out.println(a + b);
                } else if (op.equals("-")) {
                    System.out.println(a - b);
                } else if (op.equals("*")) {
                    System.out.println(a * b);
                } else if (op.equals("/")) {
                    System.out.println(a / b);
                } else if (op.equals("?")) {
                    break;
                } op.equals("+") op.equals op "+" {
                    System.out.println(a + b);
                } System.out.println(a + b) System.out.println System.out System System.out a + b a b if (op.equals("-")) {
                    System.out.println(a - b);
                } else if (op.equals("*")) {
                    System.out.println(a * b);
                } else if (op.equals("/")) {
                    System.out.println(a / b);
                } else if (op.equals("?")) {
                    break;
                } op.equals("-") op.equals op "-" {
                    System.out.println(a - b);
                } System.out.println(a - b) System.out.println System.out System System.out a - b a b if (op.equals("*")) {
                    System.out.println(a * b);
                } else if (op.equals("/")) {
                    System.out.println(a / b);
                } else if (op.equals("?")) {
                    break;
                } op.equals("*") op.equals op "*" {
                    System.out.println(a * b);
                } System.out.println(a * b) System.out.println System.out System System.out a * b a b if (op.equals("/")) {
                    System.out.println(a / b);
                } else if (op.equals("?")) {
                    break;
                } op.equals("/") op.equals op "/" {
                    System.out.println(a / b);
                } System.out.println(a / b) System.out.println System.out System System.out a / b a b if (op.equals("?")) {
                    break;
                } op.equals("?") op.equals op "?" {
                    break;
                } break; String[] args args private static class InvalidTestCaseException extends RuntimeException {
        InvalidTestCaseException() {
            super("Condition is invalid.");
        }
    } InvalidTestCaseException InvalidTestCaseException() {
            super("Condition is invalid.");
        } InvalidTestCaseException {
            super("Condition is invalid.");
        } super("Condition is invalid.") super "Condition is invalid." RuntimeException public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        try {
            while (sc.hasNext()) {
                String[] a_op_b = sc.nextLine().split(" ");
                if (a_op_b.length != 3) {
                    throw new InvalidTestCaseException();
                }
                String op = a_op_b[1];
                int a = Integer.parseInt(a_op_b[0]);
                int b = Integer.parseInt(a_op_b[2]);
                if (op.equals("+")) {
                    System.out.println(a + b);
                } else if (op.equals("-")) {
                    System.out.println(a - b);
                } else if (op.equals("*")) {
                    System.out.println(a * b);
                } else if (op.equals("/")) {
                    System.out.println(a / b);
                } else if (op.equals("?")) {
                    break;
                }
            }
        } catch (InvalidTestCaseException
                | NoSuchElementException
                | NumberFormatException e) {
            System.out.println(e);
        }
    }

    private static class InvalidTestCaseException extends RuntimeException {
        InvalidTestCaseException() {
            super("Condition is invalid.");
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        try {
            while (sc.hasNext()) {
                String[] a_op_b = sc.nextLine().split(" ");
                if (a_op_b.length != 3) {
                    throw new InvalidTestCaseException();
                }
                String op = a_op_b[1];
                int a = Integer.parseInt(a_op_b[0]);
                int b = Integer.parseInt(a_op_b[2]);
                if (op.equals("+")) {
                    System.out.println(a + b);
                } else if (op.equals("-")) {
                    System.out.println(a - b);
                } else if (op.equals("*")) {
                    System.out.println(a * b);
                } else if (op.equals("/")) {
                    System.out.println(a / b);
                } else if (op.equals("?")) {
                    break;
                }
            }
        } catch (InvalidTestCaseException
                | NoSuchElementException
                | NumberFormatException e) {
            System.out.println(e);
        }
    }

    private static class InvalidTestCaseException extends RuntimeException {
        InvalidTestCaseException() {
            super("Condition is invalid.");
        }
    }
} Main
import java.util.NoSuchElementException;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        try {
            while (sc.hasNext()) {
                String[] a_op_b = sc.nextLine().split(" ");
                if (a_op_b.length != 3) {
                    throw new InvalidTestCaseException();
                }
                String op = a_op_b[1];
                int a = Integer.parseInt(a_op_b[0]);
                int b = Integer.parseInt(a_op_b[2]);
                if (op.equals("+")) {
                    System.out.println(a + b);
                } else if (op.equals("-")) {
                    System.out.println(a - b);
                } else if (op.equals("*")) {
                    System.out.println(a * b);
                } else if (op.equals("/")) {
                    System.out.println(a / b);
                } else if (op.equals("?")) {
                    break;
                }
            }
        } catch (InvalidTestCaseException
                | NoSuchElementException
                | NumberFormatException e) {
            System.out.println(e);
        }
    }

    private static class InvalidTestCaseException extends RuntimeException {
        InvalidTestCaseException() {
            super("Condition is invalid.");
        }
    }
}

