import java.util.ArrayList;
import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        ArrayList<Integer> result = new ArrayList<Integer>();
        String operand;
        int a, b;
        label:
            while(sc.hasNextLine()){
                a = sc.nextInt();
                operand = sc.next();
                b = sc.nextInt();
                if((operand.charAt(0) == '/') && (b == 0)){
                    System.out.println("ゼロ除算");
                    System.exit(0);
                }
                switch(operand.charAt(0)){
                case '+' :
                    result.add(a + b);
                    break;
                case '-' :
                    result.add(a - b);
                    break;
                case '*' :
                    result.add(a * b);
                    break;
                case '/' :
                    result.add(a / b);
                    break;
                case '?' :
                    break label;
                default:
                    System.out.println("不正なオペランド");
                }
            }
         
            for(int i = 0; i < result.size(); i++){
                System.out.println(result.get(i));
            }
        }
     
} import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        ArrayList<Integer> result = new ArrayList<Integer>();
        String operand;
        int a, b;
        label:
            while(sc.hasNextLine()){
                a = sc.nextInt();
                operand = sc.next();
                b = sc.nextInt();
                if((operand.charAt(0) == '/') && (b == 0)){
                    System.out.println("ゼロ除算");
                    System.exit(0);
                }
                switch(operand.charAt(0)){
                case '+' :
                    result.add(a + b);
                    break;
                case '-' :
                    result.add(a - b);
                    break;
                case '*' :
                    result.add(a * b);
                    break;
                case '/' :
                    result.add(a / b);
                    break;
                case '?' :
                    break label;
                default:
                    System.out.println("不正なオペランド");
                }
            }
         
            for(int i = 0; i < result.size(); i++){
                System.out.println(result.get(i));
            }
        }
     
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        ArrayList<Integer> result = new ArrayList<Integer>();
        String operand;
        int a, b;
        label:
            while(sc.hasNextLine()){
                a = sc.nextInt();
                operand = sc.next();
                b = sc.nextInt();
                if((operand.charAt(0) == '/') && (b == 0)){
                    System.out.println("ゼロ除算");
                    System.exit(0);
                }
                switch(operand.charAt(0)){
                case '+' :
                    result.add(a + b);
                    break;
                case '-' :
                    result.add(a - b);
                    break;
                case '*' :
                    result.add(a * b);
                    break;
                case '/' :
                    result.add(a / b);
                    break;
                case '?' :
                    break label;
                default:
                    System.out.println("不正なオペランド");
                }
            }
         
            for(int i = 0; i < result.size(); i++){
                System.out.println(result.get(i));
            }
        } main {
        Scanner sc = new Scanner(System.in);
        ArrayList<Integer> result = new ArrayList<Integer>();
        String operand;
        int a, b;
        label:
            while(sc.hasNextLine()){
                a = sc.nextInt();
                operand = sc.next();
                b = sc.nextInt();
                if((operand.charAt(0) == '/') && (b == 0)){
                    System.out.println("ゼロ除算");
                    System.exit(0);
                }
                switch(operand.charAt(0)){
                case '+' :
                    result.add(a + b);
                    break;
                case '-' :
                    result.add(a - b);
                    break;
                case '*' :
                    result.add(a * b);
                    break;
                case '/' :
                    result.add(a / b);
                    break;
                case '?' :
                    break label;
                default:
                    System.out.println("不正なオペランド");
                }
            }
         
            for(int i = 0; i < result.size(); i++){
                System.out.println(result.get(i));
            }
        } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) ArrayList<Integer> result = new ArrayList<Integer>(); result new ArrayList<Integer>() String operand; operand int a a b; b for(int i = 0; i < result.size(); i++){
                System.out.println(result.get(i));
            } int i = 0; int i = 0; i 0 i < result.size() i result.size() result.size result i++ i++ i {
                System.out.println(result.get(i));
            } {
                System.out.println(result.get(i));
            } System.out.println(result.get(i)) System.out.println System.out System System.out result.get(i) result.get result i String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        ArrayList<Integer> result = new ArrayList<Integer>();
        String operand;
        int a, b;
        label:
            while(sc.hasNextLine()){
                a = sc.nextInt();
                operand = sc.next();
                b = sc.nextInt();
                if((operand.charAt(0) == '/') && (b == 0)){
                    System.out.println("ゼロ除算");
                    System.exit(0);
                }
                switch(operand.charAt(0)){
                case '+' :
                    result.add(a + b);
                    break;
                case '-' :
                    result.add(a - b);
                    break;
                case '*' :
                    result.add(a * b);
                    break;
                case '/' :
                    result.add(a / b);
                    break;
                case '?' :
                    break label;
                default:
                    System.out.println("不正なオペランド");
                }
            }
         
            for(int i = 0; i < result.size(); i++){
                System.out.println(result.get(i));
            }
        }
     
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        ArrayList<Integer> result = new ArrayList<Integer>();
        String operand;
        int a, b;
        label:
            while(sc.hasNextLine()){
                a = sc.nextInt();
                operand = sc.next();
                b = sc.nextInt();
                if((operand.charAt(0) == '/') && (b == 0)){
                    System.out.println("ゼロ除算");
                    System.exit(0);
                }
                switch(operand.charAt(0)){
                case '+' :
                    result.add(a + b);
                    break;
                case '-' :
                    result.add(a - b);
                    break;
                case '*' :
                    result.add(a * b);
                    break;
                case '/' :
                    result.add(a / b);
                    break;
                case '?' :
                    break label;
                default:
                    System.out.println("不正なオペランド");
                }
            }
         
            for(int i = 0; i < result.size(); i++){
                System.out.println(result.get(i));
            }
        }
     
} Main
import java.util.ArrayList;
import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        ArrayList<Integer> result = new ArrayList<Integer>();
        String operand;
        int a, b;
        label:
            while(sc.hasNextLine()){
                a = sc.nextInt();
                operand = sc.next();
                b = sc.nextInt();
                if((operand.charAt(0) == '/') && (b == 0)){
                    System.out.println("ゼロ除算");
                    System.exit(0);
                }
                switch(operand.charAt(0)){
                case '+' :
                    result.add(a + b);
                    break;
                case '-' :
                    result.add(a - b);
                    break;
                case '*' :
                    result.add(a * b);
                    break;
                case '/' :
                    result.add(a / b);
                    break;
                case '?' :
                    break label;
                default:
                    System.out.println("不正なオペランド");
                }
            }
         
            for(int i = 0; i < result.size(); i++){
                System.out.println(result.get(i));
            }
        }
     
}
