import java.util.*;
/*
Main class for AOJ where there is no input.
*/
public class Main{
   public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      String str;
      String[] arr;
      int a;
      int b;
      String op;
      int answer;
      
      while(true){
         str = sc.nextLine();
         arr = str.split(" ");
         
         a = Integer.parseInt(arr[0]);
         b = Integer.parseInt(arr[2]);
         
         op = arr[1];
         
         if(op.equals("?")){
            break;
         }
         
         if(op.equals("+")){
            answer = a + b;
         }else if(op.equals("-")){
            answer = a - b;
         }else if(op.equals("*")){
            answer = a * b;
         }else{//if(op.equals("/"))
            answer = a / b;
         }
         System.out.println(answer);
         
      }
      
   }//main
}//class import java.util.*; util.* java public class Main{
   public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      String str;
      String[] arr;
      int a;
      int b;
      String op;
      int answer;
      
      while(true){
         str = sc.nextLine();
         arr = str.split(" ");
         
         a = Integer.parseInt(arr[0]);
         b = Integer.parseInt(arr[2]);
         
         op = arr[1];
         
         if(op.equals("?")){
            break;
         }
         
         if(op.equals("+")){
            answer = a + b;
         }else if(op.equals("-")){
            answer = a - b;
         }else if(op.equals("*")){
            answer = a * b;
         }else{//if(op.equals("/"))
            answer = a / b;
         }
         System.out.println(answer);
         
      }
      
   }//main
}//class Main public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      String str;
      String[] arr;
      int a;
      int b;
      String op;
      int answer;
      
      while(true){
         str = sc.nextLine();
         arr = str.split(" ");
         
         a = Integer.parseInt(arr[0]);
         b = Integer.parseInt(arr[2]);
         
         op = arr[1];
         
         if(op.equals("?")){
            break;
         }
         
         if(op.equals("+")){
            answer = a + b;
         }else if(op.equals("-")){
            answer = a - b;
         }else if(op.equals("*")){
            answer = a * b;
         }else{//if(op.equals("/"))
            answer = a / b;
         }
         System.out.println(answer);
         
      }
      
   }//main main {
      Scanner sc = new Scanner(System.in);
      String str;
      String[] arr;
      int a;
      int b;
      String op;
      int answer;
      
      while(true){
         str = sc.nextLine();
         arr = str.split(" ");
         
         a = Integer.parseInt(arr[0]);
         b = Integer.parseInt(arr[2]);
         
         op = arr[1];
         
         if(op.equals("?")){
            break;
         }
         
         if(op.equals("+")){
            answer = a + b;
         }else if(op.equals("-")){
            answer = a - b;
         }else if(op.equals("*")){
            answer = a * b;
         }else{//if(op.equals("/"))
            answer = a / b;
         }
         System.out.println(answer);
         
      }
      
   } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str; str String[] arr; arr int a; a int b; b String op; op int answer; answer while(true){
         str = sc.nextLine();
         arr = str.split(" ");
         
         a = Integer.parseInt(arr[0]);
         b = Integer.parseInt(arr[2]);
         
         op = arr[1];
         
         if(op.equals("?")){
            break;
         }
         
         if(op.equals("+")){
            answer = a + b;
         }else if(op.equals("-")){
            answer = a - b;
         }else if(op.equals("*")){
            answer = a * b;
         }else{//if(op.equals("/"))
            answer = a / b;
         }
         System.out.println(answer);
         
      } true {
         str = sc.nextLine();
         arr = str.split(" ");
         
         a = Integer.parseInt(arr[0]);
         b = Integer.parseInt(arr[2]);
         
         op = arr[1];
         
         if(op.equals("?")){
            break;
         }
         
         if(op.equals("+")){
            answer = a + b;
         }else if(op.equals("-")){
            answer = a - b;
         }else if(op.equals("*")){
            answer = a * b;
         }else{//if(op.equals("/"))
            answer = a / b;
         }
         System.out.println(answer);
         
      } str = sc.nextLine() str sc.nextLine() sc.nextLine sc arr = str.split(" ") arr str.split(" ") str.split str " " a = Integer.parseInt(arr[0]) a Integer.parseInt(arr[0]) Integer.parseInt Integer arr[0] arr 0 b = Integer.parseInt(arr[2]) b Integer.parseInt(arr[2]) Integer.parseInt Integer arr[2] arr 2 op = arr[1] op arr[1] arr 1 if(op.equals("?")){
            break;
         } op.equals("?") op.equals op "?" {
            break;
         } break; if(op.equals("+")){
            answer = a + b;
         }else if(op.equals("-")){
            answer = a - b;
         }else if(op.equals("*")){
            answer = a * b;
         }else{//if(op.equals("/"))
            answer = a / b;
         } op.equals("+") op.equals op "+" {
            answer = a + b;
         } answer = a + b answer a + b a b if(op.equals("-")){
            answer = a - b;
         }else if(op.equals("*")){
            answer = a * b;
         }else{//if(op.equals("/"))
            answer = a / b;
         } op.equals("-") op.equals op "-" {
            answer = a - b;
         } answer = a - b answer a - b a b if(op.equals("*")){
            answer = a * b;
         }else{//if(op.equals("/"))
            answer = a / b;
         } op.equals("*") op.equals op "*" {
            answer = a * b;
         } answer = a * b answer a * b a b {//if(op.equals("/"))
            answer = a / b;
         } answer = a / b answer a / b a b System.out.println(answer) System.out.println System.out System System.out answer String[] args args public class Main{
   public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      String str;
      String[] arr;
      int a;
      int b;
      String op;
      int answer;
      
      while(true){
         str = sc.nextLine();
         arr = str.split(" ");
         
         a = Integer.parseInt(arr[0]);
         b = Integer.parseInt(arr[2]);
         
         op = arr[1];
         
         if(op.equals("?")){
            break;
         }
         
         if(op.equals("+")){
            answer = a + b;
         }else if(op.equals("-")){
            answer = a - b;
         }else if(op.equals("*")){
            answer = a * b;
         }else{//if(op.equals("/"))
            answer = a / b;
         }
         System.out.println(answer);
         
      }
      
   }//main
}//class public class Main{
   public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      String str;
      String[] arr;
      int a;
      int b;
      String op;
      int answer;
      
      while(true){
         str = sc.nextLine();
         arr = str.split(" ");
         
         a = Integer.parseInt(arr[0]);
         b = Integer.parseInt(arr[2]);
         
         op = arr[1];
         
         if(op.equals("?")){
            break;
         }
         
         if(op.equals("+")){
            answer = a + b;
         }else if(op.equals("-")){
            answer = a - b;
         }else if(op.equals("*")){
            answer = a * b;
         }else{//if(op.equals("/"))
            answer = a / b;
         }
         System.out.println(answer);
         
      }
      
   }//main
}//class Main
import java.util.*;
/*
Main class for AOJ where there is no input.
*/
public class Main{
   public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      String str;
      String[] arr;
      int a;
      int b;
      String op;
      int answer;
      
      while(true){
         str = sc.nextLine();
         arr = str.split(" ");
         
         a = Integer.parseInt(arr[0]);
         b = Integer.parseInt(arr[2]);
         
         op = arr[1];
         
         if(op.equals("?")){
            break;
         }
         
         if(op.equals("+")){
            answer = a + b;
         }else if(op.equals("-")){
            answer = a - b;
         }else if(op.equals("*")){
            answer = a * b;
         }else{//if(op.equals("/"))
            answer = a / b;
         }
         System.out.println(answer);
         
      }
      
   }//main
}//class