import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] strArray;
    int a , b;
    String op;
    String line;
    StringBuilder output = new StringBuilder();
    while (true) {
      line = br.readLine();
      strArray = line.split(" ");
      op = strArray[1];
      a = Integer.parseInt(strArray[0]);
      b = Integer.parseInt(strArray[2]);
      if (op.equals("+")) {
        output.append(Integer.toString(a + b)).append("\n");
      }
      else if (op.equals("-")) {
        output.append(Integer.toString(a - b)).append("\n");
      }
      else if (op.equals("*")) {
        output.append(Integer.toString(a * b)).append("\n");
      }
      else if (op.equals("/")) {
        output.append(Integer.toString(a / b)).append("\n");
      }
      else if (op.equals("?")) {
        break;
      }
    }
    System.out.print(output);
  }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.IOException; IOException java.io public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] strArray;
    int a , b;
    String op;
    String line;
    StringBuilder output = new StringBuilder();
    while (true) {
      line = br.readLine();
      strArray = line.split(" ");
      op = strArray[1];
      a = Integer.parseInt(strArray[0]);
      b = Integer.parseInt(strArray[2]);
      if (op.equals("+")) {
        output.append(Integer.toString(a + b)).append("\n");
      }
      else if (op.equals("-")) {
        output.append(Integer.toString(a - b)).append("\n");
      }
      else if (op.equals("*")) {
        output.append(Integer.toString(a * b)).append("\n");
      }
      else if (op.equals("/")) {
        output.append(Integer.toString(a / b)).append("\n");
      }
      else if (op.equals("?")) {
        break;
      }
    }
    System.out.print(output);
  }
} Main public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] strArray;
    int a , b;
    String op;
    String line;
    StringBuilder output = new StringBuilder();
    while (true) {
      line = br.readLine();
      strArray = line.split(" ");
      op = strArray[1];
      a = Integer.parseInt(strArray[0]);
      b = Integer.parseInt(strArray[2]);
      if (op.equals("+")) {
        output.append(Integer.toString(a + b)).append("\n");
      }
      else if (op.equals("-")) {
        output.append(Integer.toString(a - b)).append("\n");
      }
      else if (op.equals("*")) {
        output.append(Integer.toString(a * b)).append("\n");
      }
      else if (op.equals("/")) {
        output.append(Integer.toString(a / b)).append("\n");
      }
      else if (op.equals("?")) {
        break;
      }
    }
    System.out.print(output);
  } main {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] strArray;
    int a , b;
    String op;
    String line;
    StringBuilder output = new StringBuilder();
    while (true) {
      line = br.readLine();
      strArray = line.split(" ");
      op = strArray[1];
      a = Integer.parseInt(strArray[0]);
      b = Integer.parseInt(strArray[2]);
      if (op.equals("+")) {
        output.append(Integer.toString(a + b)).append("\n");
      }
      else if (op.equals("-")) {
        output.append(Integer.toString(a - b)).append("\n");
      }
      else if (op.equals("*")) {
        output.append(Integer.toString(a * b)).append("\n");
      }
      else if (op.equals("/")) {
        output.append(Integer.toString(a / b)).append("\n");
      }
      else if (op.equals("?")) {
        break;
      }
    }
    System.out.print(output);
  } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] strArray; strArray int a a b; b String op; op String line; line StringBuilder output = new StringBuilder(); output new StringBuilder() while (true) {
      line = br.readLine();
      strArray = line.split(" ");
      op = strArray[1];
      a = Integer.parseInt(strArray[0]);
      b = Integer.parseInt(strArray[2]);
      if (op.equals("+")) {
        output.append(Integer.toString(a + b)).append("\n");
      }
      else if (op.equals("-")) {
        output.append(Integer.toString(a - b)).append("\n");
      }
      else if (op.equals("*")) {
        output.append(Integer.toString(a * b)).append("\n");
      }
      else if (op.equals("/")) {
        output.append(Integer.toString(a / b)).append("\n");
      }
      else if (op.equals("?")) {
        break;
      }
    } true {
      line = br.readLine();
      strArray = line.split(" ");
      op = strArray[1];
      a = Integer.parseInt(strArray[0]);
      b = Integer.parseInt(strArray[2]);
      if (op.equals("+")) {
        output.append(Integer.toString(a + b)).append("\n");
      }
      else if (op.equals("-")) {
        output.append(Integer.toString(a - b)).append("\n");
      }
      else if (op.equals("*")) {
        output.append(Integer.toString(a * b)).append("\n");
      }
      else if (op.equals("/")) {
        output.append(Integer.toString(a / b)).append("\n");
      }
      else if (op.equals("?")) {
        break;
      }
    } line = br.readLine() line br.readLine() br.readLine br strArray = line.split(" ") strArray line.split(" ") line.split line " " op = strArray[1] op strArray[1] strArray 1 a = Integer.parseInt(strArray[0]) a Integer.parseInt(strArray[0]) Integer.parseInt Integer strArray[0] strArray 0 b = Integer.parseInt(strArray[2]) b Integer.parseInt(strArray[2]) Integer.parseInt Integer strArray[2] strArray 2 if (op.equals("+")) {
        output.append(Integer.toString(a + b)).append("\n");
      }
      else if (op.equals("-")) {
        output.append(Integer.toString(a - b)).append("\n");
      }
      else if (op.equals("*")) {
        output.append(Integer.toString(a * b)).append("\n");
      }
      else if (op.equals("/")) {
        output.append(Integer.toString(a / b)).append("\n");
      }
      else if (op.equals("?")) {
        break;
      } op.equals("+") op.equals op "+" {
        output.append(Integer.toString(a + b)).append("\n");
      } output.append(Integer.toString(a + b)).append("\n") output.append(Integer.toString(a + b)).append output.append(Integer.toString(a + b)) output.append output Integer.toString(a + b) Integer.toString Integer a + b a b "\n" if (op.equals("-")) {
        output.append(Integer.toString(a - b)).append("\n");
      }
      else if (op.equals("*")) {
        output.append(Integer.toString(a * b)).append("\n");
      }
      else if (op.equals("/")) {
        output.append(Integer.toString(a / b)).append("\n");
      }
      else if (op.equals("?")) {
        break;
      } op.equals("-") op.equals op "-" {
        output.append(Integer.toString(a - b)).append("\n");
      } output.append(Integer.toString(a - b)).append("\n") output.append(Integer.toString(a - b)).append output.append(Integer.toString(a - b)) output.append output Integer.toString(a - b) Integer.toString Integer a - b a b "\n" if (op.equals("*")) {
        output.append(Integer.toString(a * b)).append("\n");
      }
      else if (op.equals("/")) {
        output.append(Integer.toString(a / b)).append("\n");
      }
      else if (op.equals("?")) {
        break;
      } op.equals("*") op.equals op "*" {
        output.append(Integer.toString(a * b)).append("\n");
      } output.append(Integer.toString(a * b)).append("\n") output.append(Integer.toString(a * b)).append output.append(Integer.toString(a * b)) output.append output Integer.toString(a * b) Integer.toString Integer a * b a b "\n" if (op.equals("/")) {
        output.append(Integer.toString(a / b)).append("\n");
      }
      else if (op.equals("?")) {
        break;
      } op.equals("/") op.equals op "/" {
        output.append(Integer.toString(a / b)).append("\n");
      } output.append(Integer.toString(a / b)).append("\n") output.append(Integer.toString(a / b)).append output.append(Integer.toString(a / b)) output.append output Integer.toString(a / b) Integer.toString Integer a / b a b "\n" if (op.equals("?")) {
        break;
      } op.equals("?") op.equals op "?" {
        break;
      } break; System.out.print(output) System.out.print System.out System System.out output String[] args args public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] strArray;
    int a , b;
    String op;
    String line;
    StringBuilder output = new StringBuilder();
    while (true) {
      line = br.readLine();
      strArray = line.split(" ");
      op = strArray[1];
      a = Integer.parseInt(strArray[0]);
      b = Integer.parseInt(strArray[2]);
      if (op.equals("+")) {
        output.append(Integer.toString(a + b)).append("\n");
      }
      else if (op.equals("-")) {
        output.append(Integer.toString(a - b)).append("\n");
      }
      else if (op.equals("*")) {
        output.append(Integer.toString(a * b)).append("\n");
      }
      else if (op.equals("/")) {
        output.append(Integer.toString(a / b)).append("\n");
      }
      else if (op.equals("?")) {
        break;
      }
    }
    System.out.print(output);
  }
} public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] strArray;
    int a , b;
    String op;
    String line;
    StringBuilder output = new StringBuilder();
    while (true) {
      line = br.readLine();
      strArray = line.split(" ");
      op = strArray[1];
      a = Integer.parseInt(strArray[0]);
      b = Integer.parseInt(strArray[2]);
      if (op.equals("+")) {
        output.append(Integer.toString(a + b)).append("\n");
      }
      else if (op.equals("-")) {
        output.append(Integer.toString(a - b)).append("\n");
      }
      else if (op.equals("*")) {
        output.append(Integer.toString(a * b)).append("\n");
      }
      else if (op.equals("/")) {
        output.append(Integer.toString(a / b)).append("\n");
      }
      else if (op.equals("?")) {
        break;
      }
    }
    System.out.print(output);
  }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] strArray;
    int a , b;
    String op;
    String line;
    StringBuilder output = new StringBuilder();
    while (true) {
      line = br.readLine();
      strArray = line.split(" ");
      op = strArray[1];
      a = Integer.parseInt(strArray[0]);
      b = Integer.parseInt(strArray[2]);
      if (op.equals("+")) {
        output.append(Integer.toString(a + b)).append("\n");
      }
      else if (op.equals("-")) {
        output.append(Integer.toString(a - b)).append("\n");
      }
      else if (op.equals("*")) {
        output.append(Integer.toString(a * b)).append("\n");
      }
      else if (op.equals("/")) {
        output.append(Integer.toString(a / b)).append("\n");
      }
      else if (op.equals("?")) {
        break;
      }
    }
    System.out.print(output);
  }
}