import java.io.*;
import java.util.*;

class Main{
  public static void main(String[] args)throws IOException{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] calculator = new String[3];
    int first_number = 0;
    int second_number = 0;
    String operator;
    List<String> answers = new ArrayList<String>();
    int answer = 0;

    while(true){
      calculator = br.readLine().split(" ");
      first_number = Integer.parseInt(calculator[0]);
      second_number = Integer.parseInt(calculator[2]);
      operator = calculator[1];

      if(operator.equals("+")){
        answer = first_number + second_number;
        answers.add(String.valueOf(answer));
      }else if(operator.equals("-")){
        answer = first_number - second_number;
        answers.add(String.valueOf(answer));
      }else if(operator.equals("*")){
        answer = first_number * second_number;
        answers.add(String.valueOf(answer));
      }else if(operator.equals("/")){
        answer = first_number / second_number;
        answers.add(String.valueOf(answer));
      }else if(operator.equals("%")){
        answer = first_number % second_number;
        answers.add(String.valueOf(answer));
      }else{
        break;
      }
    }

    for(String score:answers){
      System.out.println(score);
    }
  }
}
 import java.io.*; io.* java import java.util.*; util.* java class Main{
  public static void main(String[] args)throws IOException{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] calculator = new String[3];
    int first_number = 0;
    int second_number = 0;
    String operator;
    List<String> answers = new ArrayList<String>();
    int answer = 0;

    while(true){
      calculator = br.readLine().split(" ");
      first_number = Integer.parseInt(calculator[0]);
      second_number = Integer.parseInt(calculator[2]);
      operator = calculator[1];

      if(operator.equals("+")){
        answer = first_number + second_number;
        answers.add(String.valueOf(answer));
      }else if(operator.equals("-")){
        answer = first_number - second_number;
        answers.add(String.valueOf(answer));
      }else if(operator.equals("*")){
        answer = first_number * second_number;
        answers.add(String.valueOf(answer));
      }else if(operator.equals("/")){
        answer = first_number / second_number;
        answers.add(String.valueOf(answer));
      }else if(operator.equals("%")){
        answer = first_number % second_number;
        answers.add(String.valueOf(answer));
      }else{
        break;
      }
    }

    for(String score:answers){
      System.out.println(score);
    }
  }
} Main public static void main(String[] args)throws IOException{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] calculator = new String[3];
    int first_number = 0;
    int second_number = 0;
    String operator;
    List<String> answers = new ArrayList<String>();
    int answer = 0;

    while(true){
      calculator = br.readLine().split(" ");
      first_number = Integer.parseInt(calculator[0]);
      second_number = Integer.parseInt(calculator[2]);
      operator = calculator[1];

      if(operator.equals("+")){
        answer = first_number + second_number;
        answers.add(String.valueOf(answer));
      }else if(operator.equals("-")){
        answer = first_number - second_number;
        answers.add(String.valueOf(answer));
      }else if(operator.equals("*")){
        answer = first_number * second_number;
        answers.add(String.valueOf(answer));
      }else if(operator.equals("/")){
        answer = first_number / second_number;
        answers.add(String.valueOf(answer));
      }else if(operator.equals("%")){
        answer = first_number % second_number;
        answers.add(String.valueOf(answer));
      }else{
        break;
      }
    }

    for(String score:answers){
      System.out.println(score);
    }
  } main {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] calculator = new String[3];
    int first_number = 0;
    int second_number = 0;
    String operator;
    List<String> answers = new ArrayList<String>();
    int answer = 0;

    while(true){
      calculator = br.readLine().split(" ");
      first_number = Integer.parseInt(calculator[0]);
      second_number = Integer.parseInt(calculator[2]);
      operator = calculator[1];

      if(operator.equals("+")){
        answer = first_number + second_number;
        answers.add(String.valueOf(answer));
      }else if(operator.equals("-")){
        answer = first_number - second_number;
        answers.add(String.valueOf(answer));
      }else if(operator.equals("*")){
        answer = first_number * second_number;
        answers.add(String.valueOf(answer));
      }else if(operator.equals("/")){
        answer = first_number / second_number;
        answers.add(String.valueOf(answer));
      }else if(operator.equals("%")){
        answer = first_number % second_number;
        answers.add(String.valueOf(answer));
      }else{
        break;
      }
    }

    for(String score:answers){
      System.out.println(score);
    }
  } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] calculator = new String[3]; calculator new String[3] 3 int first_number = 0; first_number 0 int second_number = 0; second_number 0 String operator; operator List<String> answers = new ArrayList<String>(); answers new ArrayList<String>() int answer = 0; answer 0 while(true){
      calculator = br.readLine().split(" ");
      first_number = Integer.parseInt(calculator[0]);
      second_number = Integer.parseInt(calculator[2]);
      operator = calculator[1];

      if(operator.equals("+")){
        answer = first_number + second_number;
        answers.add(String.valueOf(answer));
      }else if(operator.equals("-")){
        answer = first_number - second_number;
        answers.add(String.valueOf(answer));
      }else if(operator.equals("*")){
        answer = first_number * second_number;
        answers.add(String.valueOf(answer));
      }else if(operator.equals("/")){
        answer = first_number / second_number;
        answers.add(String.valueOf(answer));
      }else if(operator.equals("%")){
        answer = first_number % second_number;
        answers.add(String.valueOf(answer));
      }else{
        break;
      }
    } true {
      calculator = br.readLine().split(" ");
      first_number = Integer.parseInt(calculator[0]);
      second_number = Integer.parseInt(calculator[2]);
      operator = calculator[1];

      if(operator.equals("+")){
        answer = first_number + second_number;
        answers.add(String.valueOf(answer));
      }else if(operator.equals("-")){
        answer = first_number - second_number;
        answers.add(String.valueOf(answer));
      }else if(operator.equals("*")){
        answer = first_number * second_number;
        answers.add(String.valueOf(answer));
      }else if(operator.equals("/")){
        answer = first_number / second_number;
        answers.add(String.valueOf(answer));
      }else if(operator.equals("%")){
        answer = first_number % second_number;
        answers.add(String.valueOf(answer));
      }else{
        break;
      }
    } calculator = br.readLine().split(" ") calculator br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " first_number = Integer.parseInt(calculator[0]) first_number Integer.parseInt(calculator[0]) Integer.parseInt Integer calculator[0] calculator 0 second_number = Integer.parseInt(calculator[2]) second_number Integer.parseInt(calculator[2]) Integer.parseInt Integer calculator[2] calculator 2 operator = calculator[1] operator calculator[1] calculator 1 if(operator.equals("+")){
        answer = first_number + second_number;
        answers.add(String.valueOf(answer));
      }else if(operator.equals("-")){
        answer = first_number - second_number;
        answers.add(String.valueOf(answer));
      }else if(operator.equals("*")){
        answer = first_number * second_number;
        answers.add(String.valueOf(answer));
      }else if(operator.equals("/")){
        answer = first_number / second_number;
        answers.add(String.valueOf(answer));
      }else if(operator.equals("%")){
        answer = first_number % second_number;
        answers.add(String.valueOf(answer));
      }else{
        break;
      } operator.equals("+") operator.equals operator "+" {
        answer = first_number + second_number;
        answers.add(String.valueOf(answer));
      } answer = first_number + second_number answer first_number + second_number first_number second_number answers.add(String.valueOf(answer)) answers.add answers String.valueOf(answer) String.valueOf String answer if(operator.equals("-")){
        answer = first_number - second_number;
        answers.add(String.valueOf(answer));
      }else if(operator.equals("*")){
        answer = first_number * second_number;
        answers.add(String.valueOf(answer));
      }else if(operator.equals("/")){
        answer = first_number / second_number;
        answers.add(String.valueOf(answer));
      }else if(operator.equals("%")){
        answer = first_number % second_number;
        answers.add(String.valueOf(answer));
      }else{
        break;
      } operator.equals("-") operator.equals operator "-" {
        answer = first_number - second_number;
        answers.add(String.valueOf(answer));
      } answer = first_number - second_number answer first_number - second_number first_number second_number answers.add(String.valueOf(answer)) answers.add answers String.valueOf(answer) String.valueOf String answer if(operator.equals("*")){
        answer = first_number * second_number;
        answers.add(String.valueOf(answer));
      }else if(operator.equals("/")){
        answer = first_number / second_number;
        answers.add(String.valueOf(answer));
      }else if(operator.equals("%")){
        answer = first_number % second_number;
        answers.add(String.valueOf(answer));
      }else{
        break;
      } operator.equals("*") operator.equals operator "*" {
        answer = first_number * second_number;
        answers.add(String.valueOf(answer));
      } answer = first_number * second_number answer first_number * second_number first_number second_number answers.add(String.valueOf(answer)) answers.add answers String.valueOf(answer) String.valueOf String answer if(operator.equals("/")){
        answer = first_number / second_number;
        answers.add(String.valueOf(answer));
      }else if(operator.equals("%")){
        answer = first_number % second_number;
        answers.add(String.valueOf(answer));
      }else{
        break;
      } operator.equals("/") operator.equals operator "/" {
        answer = first_number / second_number;
        answers.add(String.valueOf(answer));
      } answer = first_number / second_number answer first_number / second_number first_number second_number answers.add(String.valueOf(answer)) answers.add answers String.valueOf(answer) String.valueOf String answer if(operator.equals("%")){
        answer = first_number % second_number;
        answers.add(String.valueOf(answer));
      }else{
        break;
      } operator.equals("%") operator.equals operator "%" {
        answer = first_number % second_number;
        answers.add(String.valueOf(answer));
      } answer = first_number % second_number answer first_number % second_number first_number second_number answers.add(String.valueOf(answer)) answers.add answers String.valueOf(answer) String.valueOf String answer {
        break;
      } break; for(String score:answers){
      System.out.println(score);
    } String score answers {
      System.out.println(score);
    } {
      System.out.println(score);
    } System.out.println(score) System.out.println System.out System System.out score String[] args args
import java.io.*;
import java.util.*;

class Main{
  public static void main(String[] args)throws IOException{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] calculator = new String[3];
    int first_number = 0;
    int second_number = 0;
    String operator;
    List<String> answers = new ArrayList<String>();
    int answer = 0;

    while(true){
      calculator = br.readLine().split(" ");
      first_number = Integer.parseInt(calculator[0]);
      second_number = Integer.parseInt(calculator[2]);
      operator = calculator[1];

      if(operator.equals("+")){
        answer = first_number + second_number;
        answers.add(String.valueOf(answer));
      }else if(operator.equals("-")){
        answer = first_number - second_number;
        answers.add(String.valueOf(answer));
      }else if(operator.equals("*")){
        answer = first_number * second_number;
        answers.add(String.valueOf(answer));
      }else if(operator.equals("/")){
        answer = first_number / second_number;
        answers.add(String.valueOf(answer));
      }else if(operator.equals("%")){
        answer = first_number % second_number;
        answers.add(String.valueOf(answer));
      }else{
        break;
      }
    }

    for(String score:answers){
      System.out.println(score);
    }
  }
}

