import java.util.ArrayList;
import java.util.Scanner;

/**
 * Created 2017/06/01.
 */
public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    ArrayList<ArrayList<String>> ary = new ArrayList<>();

    while (true) {
      ArrayList<String> ary1 = new ArrayList<>();
      String input1 = sc.next();
      String input2 = sc.next();
      String input3 = sc.next();
      if (input2.equals("?")) break;
      ary1.add(input1);
      ary1.add(input2);
      ary1.add(input3);
      ary.add(ary1);
    }
    
    for (ArrayList<String> ary2 : ary) {
      int a = Integer.parseInt(ary2.get(0));
      String op = ary2.get(1);
      int b = Integer.parseInt(ary2.get(2));
      switch (op) {
        case "+":
          System.out.println(a + b);
          break;
        case "-":
          System.out.println(a - b);
          break;
        case "/":
          System.out.println(a / b);
          break;
        case "*":
          System.out.println(a * b);
          break;
      }
    }
  }
} 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<ArrayList<String>> ary = new ArrayList<>();

    while (true) {
      ArrayList<String> ary1 = new ArrayList<>();
      String input1 = sc.next();
      String input2 = sc.next();
      String input3 = sc.next();
      if (input2.equals("?")) break;
      ary1.add(input1);
      ary1.add(input2);
      ary1.add(input3);
      ary.add(ary1);
    }
    
    for (ArrayList<String> ary2 : ary) {
      int a = Integer.parseInt(ary2.get(0));
      String op = ary2.get(1);
      int b = Integer.parseInt(ary2.get(2));
      switch (op) {
        case "+":
          System.out.println(a + b);
          break;
        case "-":
          System.out.println(a - b);
          break;
        case "/":
          System.out.println(a / b);
          break;
        case "*":
          System.out.println(a * b);
          break;
      }
    }
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    ArrayList<ArrayList<String>> ary = new ArrayList<>();

    while (true) {
      ArrayList<String> ary1 = new ArrayList<>();
      String input1 = sc.next();
      String input2 = sc.next();
      String input3 = sc.next();
      if (input2.equals("?")) break;
      ary1.add(input1);
      ary1.add(input2);
      ary1.add(input3);
      ary.add(ary1);
    }
    
    for (ArrayList<String> ary2 : ary) {
      int a = Integer.parseInt(ary2.get(0));
      String op = ary2.get(1);
      int b = Integer.parseInt(ary2.get(2));
      switch (op) {
        case "+":
          System.out.println(a + b);
          break;
        case "-":
          System.out.println(a - b);
          break;
        case "/":
          System.out.println(a / b);
          break;
        case "*":
          System.out.println(a * b);
          break;
      }
    }
  } main {
    Scanner sc = new Scanner(System.in);
    ArrayList<ArrayList<String>> ary = new ArrayList<>();

    while (true) {
      ArrayList<String> ary1 = new ArrayList<>();
      String input1 = sc.next();
      String input2 = sc.next();
      String input3 = sc.next();
      if (input2.equals("?")) break;
      ary1.add(input1);
      ary1.add(input2);
      ary1.add(input3);
      ary.add(ary1);
    }
    
    for (ArrayList<String> ary2 : ary) {
      int a = Integer.parseInt(ary2.get(0));
      String op = ary2.get(1);
      int b = Integer.parseInt(ary2.get(2));
      switch (op) {
        case "+":
          System.out.println(a + b);
          break;
        case "-":
          System.out.println(a - b);
          break;
        case "/":
          System.out.println(a / b);
          break;
        case "*":
          System.out.println(a * b);
          break;
      }
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) ArrayList<ArrayList<String>> ary = new ArrayList<>(); ary new ArrayList<>() while (true) {
      ArrayList<String> ary1 = new ArrayList<>();
      String input1 = sc.next();
      String input2 = sc.next();
      String input3 = sc.next();
      if (input2.equals("?")) break;
      ary1.add(input1);
      ary1.add(input2);
      ary1.add(input3);
      ary.add(ary1);
    } true {
      ArrayList<String> ary1 = new ArrayList<>();
      String input1 = sc.next();
      String input2 = sc.next();
      String input3 = sc.next();
      if (input2.equals("?")) break;
      ary1.add(input1);
      ary1.add(input2);
      ary1.add(input3);
      ary.add(ary1);
    } ArrayList<String> ary1 = new ArrayList<>(); ary1 new ArrayList<>() String input1 = sc.next(); input1 sc.next() sc.next sc String input2 = sc.next(); input2 sc.next() sc.next sc String input3 = sc.next(); input3 sc.next() sc.next sc if (input2.equals("?")) break; input2.equals("?") input2.equals input2 "?" break; ary1.add(input1) ary1.add ary1 input1 ary1.add(input2) ary1.add ary1 input2 ary1.add(input3) ary1.add ary1 input3 ary.add(ary1) ary.add ary ary1 for (ArrayList<String> ary2 : ary) {
      int a = Integer.parseInt(ary2.get(0));
      String op = ary2.get(1);
      int b = Integer.parseInt(ary2.get(2));
      switch (op) {
        case "+":
          System.out.println(a + b);
          break;
        case "-":
          System.out.println(a - b);
          break;
        case "/":
          System.out.println(a / b);
          break;
        case "*":
          System.out.println(a * b);
          break;
      }
    } ArrayList<String> ary2 ary {
      int a = Integer.parseInt(ary2.get(0));
      String op = ary2.get(1);
      int b = Integer.parseInt(ary2.get(2));
      switch (op) {
        case "+":
          System.out.println(a + b);
          break;
        case "-":
          System.out.println(a - b);
          break;
        case "/":
          System.out.println(a / b);
          break;
        case "*":
          System.out.println(a * b);
          break;
      }
    } {
      int a = Integer.parseInt(ary2.get(0));
      String op = ary2.get(1);
      int b = Integer.parseInt(ary2.get(2));
      switch (op) {
        case "+":
          System.out.println(a + b);
          break;
        case "-":
          System.out.println(a - b);
          break;
        case "/":
          System.out.println(a / b);
          break;
        case "*":
          System.out.println(a * b);
          break;
      }
    } int a = Integer.parseInt(ary2.get(0)); a Integer.parseInt(ary2.get(0)) Integer.parseInt Integer ary2.get(0) ary2.get ary2 0 String op = ary2.get(1); op ary2.get(1) ary2.get ary2 1 int b = Integer.parseInt(ary2.get(2)); b Integer.parseInt(ary2.get(2)) Integer.parseInt Integer ary2.get(2) ary2.get ary2 2 switch (op) {
        case "+":
          System.out.println(a + b);
          break;
        case "-":
          System.out.println(a - b);
          break;
        case "/":
          System.out.println(a / b);
          break;
        case "*":
          System.out.println(a * b);
          break;
      } op case "+": "+" case "+": System.out.println(a + b) System.out.println System.out System System.out a + b a b break; case "-": "-" case "-": System.out.println(a - b) System.out.println System.out System System.out a - b a b break; case "/": "/" case "/": System.out.println(a / b) System.out.println System.out System System.out a / b a b break; case "*": "*" case "*": System.out.println(a * b) System.out.println System.out System System.out a * b a b break; String[] args args public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    ArrayList<ArrayList<String>> ary = new ArrayList<>();

    while (true) {
      ArrayList<String> ary1 = new ArrayList<>();
      String input1 = sc.next();
      String input2 = sc.next();
      String input3 = sc.next();
      if (input2.equals("?")) break;
      ary1.add(input1);
      ary1.add(input2);
      ary1.add(input3);
      ary.add(ary1);
    }
    
    for (ArrayList<String> ary2 : ary) {
      int a = Integer.parseInt(ary2.get(0));
      String op = ary2.get(1);
      int b = Integer.parseInt(ary2.get(2));
      switch (op) {
        case "+":
          System.out.println(a + b);
          break;
        case "-":
          System.out.println(a - b);
          break;
        case "/":
          System.out.println(a / b);
          break;
        case "*":
          System.out.println(a * b);
          break;
      }
    }
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    ArrayList<ArrayList<String>> ary = new ArrayList<>();

    while (true) {
      ArrayList<String> ary1 = new ArrayList<>();
      String input1 = sc.next();
      String input2 = sc.next();
      String input3 = sc.next();
      if (input2.equals("?")) break;
      ary1.add(input1);
      ary1.add(input2);
      ary1.add(input3);
      ary.add(ary1);
    }
    
    for (ArrayList<String> ary2 : ary) {
      int a = Integer.parseInt(ary2.get(0));
      String op = ary2.get(1);
      int b = Integer.parseInt(ary2.get(2));
      switch (op) {
        case "+":
          System.out.println(a + b);
          break;
        case "-":
          System.out.println(a - b);
          break;
        case "/":
          System.out.println(a / b);
          break;
        case "*":
          System.out.println(a * b);
          break;
      }
    }
  }
} Main
import java.util.ArrayList;
import java.util.Scanner;

/**
 * Created 2017/06/01.
 */
public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    ArrayList<ArrayList<String>> ary = new ArrayList<>();

    while (true) {
      ArrayList<String> ary1 = new ArrayList<>();
      String input1 = sc.next();
      String input2 = sc.next();
      String input3 = sc.next();
      if (input2.equals("?")) break;
      ary1.add(input1);
      ary1.add(input2);
      ary1.add(input3);
      ary.add(ary1);
    }
    
    for (ArrayList<String> ary2 : ary) {
      int a = Integer.parseInt(ary2.get(0));
      String op = ary2.get(1);
      int b = Integer.parseInt(ary2.get(2));
      switch (op) {
        case "+":
          System.out.println(a + b);
          break;
        case "-":
          System.out.println(a - b);
          break;
        case "/":
          System.out.println(a / b);
          break;
        case "*":
          System.out.println(a * b);
          break;
      }
    }
  }
}