import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.math.BigDecimal;

public class Main {
        public static void main(String[] args) throws Exception {
    	String[] op = {"+","-","*","/"};
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        while(true) {
            BigDecimal n = new BigDecimal(0);
            String line = br.readLine();
            String[] ary = line.split(" ");
            if(ary[1].equals("?"))
                break;
            else {
                BigDecimal in1 = new BigDecimal(ary[0]);
                BigDecimal in2 = new BigDecimal(ary[2]);
                switch(Matching(op,ary[1])) {
                    case 0:
                        n = in1.add(in2);
                        break;
                    case 1:
                        n = in1.subtract(in2);
                        break;
                    case 2:
                        n = in1.multiply(in2);
                        break;
                    case 3:
                        n = in1.divideToIntegralValue(in2);
                        break;
                }
                System.out.println(n.toPlainString());
            }

        }
    }
    private static int Matching(String[] str,String target) {
    	for(int i=0;i<str.length;i++) {
    		if(str[i].equals(target)){
    			return i;
    		}
    	}
		return 0;
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.math.BigDecimal; BigDecimal java.math public class Main {
        public static void main(String[] args) throws Exception {
    	String[] op = {"+","-","*","/"};
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        while(true) {
            BigDecimal n = new BigDecimal(0);
            String line = br.readLine();
            String[] ary = line.split(" ");
            if(ary[1].equals("?"))
                break;
            else {
                BigDecimal in1 = new BigDecimal(ary[0]);
                BigDecimal in2 = new BigDecimal(ary[2]);
                switch(Matching(op,ary[1])) {
                    case 0:
                        n = in1.add(in2);
                        break;
                    case 1:
                        n = in1.subtract(in2);
                        break;
                    case 2:
                        n = in1.multiply(in2);
                        break;
                    case 3:
                        n = in1.divideToIntegralValue(in2);
                        break;
                }
                System.out.println(n.toPlainString());
            }

        }
    }
    private static int Matching(String[] str,String target) {
    	for(int i=0;i<str.length;i++) {
    		if(str[i].equals(target)){
    			return i;
    		}
    	}
		return 0;
    }
} Main public static void main(String[] args) throws Exception {
    	String[] op = {"+","-","*","/"};
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        while(true) {
            BigDecimal n = new BigDecimal(0);
            String line = br.readLine();
            String[] ary = line.split(" ");
            if(ary[1].equals("?"))
                break;
            else {
                BigDecimal in1 = new BigDecimal(ary[0]);
                BigDecimal in2 = new BigDecimal(ary[2]);
                switch(Matching(op,ary[1])) {
                    case 0:
                        n = in1.add(in2);
                        break;
                    case 1:
                        n = in1.subtract(in2);
                        break;
                    case 2:
                        n = in1.multiply(in2);
                        break;
                    case 3:
                        n = in1.divideToIntegralValue(in2);
                        break;
                }
                System.out.println(n.toPlainString());
            }

        }
    } main {
    	String[] op = {"+","-","*","/"};
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        while(true) {
            BigDecimal n = new BigDecimal(0);
            String line = br.readLine();
            String[] ary = line.split(" ");
            if(ary[1].equals("?"))
                break;
            else {
                BigDecimal in1 = new BigDecimal(ary[0]);
                BigDecimal in2 = new BigDecimal(ary[2]);
                switch(Matching(op,ary[1])) {
                    case 0:
                        n = in1.add(in2);
                        break;
                    case 1:
                        n = in1.subtract(in2);
                        break;
                    case 2:
                        n = in1.multiply(in2);
                        break;
                    case 3:
                        n = in1.divideToIntegralValue(in2);
                        break;
                }
                System.out.println(n.toPlainString());
            }

        }
    } String[] op = {"+","-","*","/"}; op {"+","-","*","/"} "+" "-" "*" "/" BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) while(true) {
            BigDecimal n = new BigDecimal(0);
            String line = br.readLine();
            String[] ary = line.split(" ");
            if(ary[1].equals("?"))
                break;
            else {
                BigDecimal in1 = new BigDecimal(ary[0]);
                BigDecimal in2 = new BigDecimal(ary[2]);
                switch(Matching(op,ary[1])) {
                    case 0:
                        n = in1.add(in2);
                        break;
                    case 1:
                        n = in1.subtract(in2);
                        break;
                    case 2:
                        n = in1.multiply(in2);
                        break;
                    case 3:
                        n = in1.divideToIntegralValue(in2);
                        break;
                }
                System.out.println(n.toPlainString());
            }

        } true {
            BigDecimal n = new BigDecimal(0);
            String line = br.readLine();
            String[] ary = line.split(" ");
            if(ary[1].equals("?"))
                break;
            else {
                BigDecimal in1 = new BigDecimal(ary[0]);
                BigDecimal in2 = new BigDecimal(ary[2]);
                switch(Matching(op,ary[1])) {
                    case 0:
                        n = in1.add(in2);
                        break;
                    case 1:
                        n = in1.subtract(in2);
                        break;
                    case 2:
                        n = in1.multiply(in2);
                        break;
                    case 3:
                        n = in1.divideToIntegralValue(in2);
                        break;
                }
                System.out.println(n.toPlainString());
            }

        } BigDecimal n = new BigDecimal(0); n new BigDecimal(0) String line = br.readLine(); line br.readLine() br.readLine br String[] ary = line.split(" "); ary line.split(" ") line.split line " " if(ary[1].equals("?"))
                break;
            else {
                BigDecimal in1 = new BigDecimal(ary[0]);
                BigDecimal in2 = new BigDecimal(ary[2]);
                switch(Matching(op,ary[1])) {
                    case 0:
                        n = in1.add(in2);
                        break;
                    case 1:
                        n = in1.subtract(in2);
                        break;
                    case 2:
                        n = in1.multiply(in2);
                        break;
                    case 3:
                        n = in1.divideToIntegralValue(in2);
                        break;
                }
                System.out.println(n.toPlainString());
            } ary[1].equals("?") ary[1].equals ary[1] ary 1 "?" break; {
                BigDecimal in1 = new BigDecimal(ary[0]);
                BigDecimal in2 = new BigDecimal(ary[2]);
                switch(Matching(op,ary[1])) {
                    case 0:
                        n = in1.add(in2);
                        break;
                    case 1:
                        n = in1.subtract(in2);
                        break;
                    case 2:
                        n = in1.multiply(in2);
                        break;
                    case 3:
                        n = in1.divideToIntegralValue(in2);
                        break;
                }
                System.out.println(n.toPlainString());
            } BigDecimal in1 = new BigDecimal(ary[0]); in1 new BigDecimal(ary[0]) BigDecimal in2 = new BigDecimal(ary[2]); in2 new BigDecimal(ary[2]) switch(Matching(op,ary[1])) {
                    case 0:
                        n = in1.add(in2);
                        break;
                    case 1:
                        n = in1.subtract(in2);
                        break;
                    case 2:
                        n = in1.multiply(in2);
                        break;
                    case 3:
                        n = in1.divideToIntegralValue(in2);
                        break;
                } Matching(op,ary[1]) Matching op ary[1] ary 1 case 0: 0 case 0: n = in1.add(in2) n in1.add(in2) in1.add in1 in2 break; case 1: 1 case 1: n = in1.subtract(in2) n in1.subtract(in2) in1.subtract in1 in2 break; case 2: 2 case 2: n = in1.multiply(in2) n in1.multiply(in2) in1.multiply in1 in2 break; case 3: 3 case 3: n = in1.divideToIntegralValue(in2) n in1.divideToIntegralValue(in2) in1.divideToIntegralValue in1 in2 break; System.out.println(n.toPlainString()) System.out.println System.out System System.out n.toPlainString() n.toPlainString n String[] args args private static int Matching(String[] str,String target) {
    	for(int i=0;i<str.length;i++) {
    		if(str[i].equals(target)){
    			return i;
    		}
    	}
		return 0;
    } Matching {
    	for(int i=0;i<str.length;i++) {
    		if(str[i].equals(target)){
    			return i;
    		}
    	}
		return 0;
    } for(int i=0;i<str.length;i++) {
    		if(str[i].equals(target)){
    			return i;
    		}
    	} int i=0; int i=0; i 0 i<str.length i str.length str str.length i++ i++ i {
    		if(str[i].equals(target)){
    			return i;
    		}
    	} {
    		if(str[i].equals(target)){
    			return i;
    		}
    	} if(str[i].equals(target)){
    			return i;
    		} str[i].equals(target) str[i].equals str[i] str i target {
    			return i;
    		} return i; i return 0; 0 String[] str str String target target public class Main {
        public static void main(String[] args) throws Exception {
    	String[] op = {"+","-","*","/"};
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        while(true) {
            BigDecimal n = new BigDecimal(0);
            String line = br.readLine();
            String[] ary = line.split(" ");
            if(ary[1].equals("?"))
                break;
            else {
                BigDecimal in1 = new BigDecimal(ary[0]);
                BigDecimal in2 = new BigDecimal(ary[2]);
                switch(Matching(op,ary[1])) {
                    case 0:
                        n = in1.add(in2);
                        break;
                    case 1:
                        n = in1.subtract(in2);
                        break;
                    case 2:
                        n = in1.multiply(in2);
                        break;
                    case 3:
                        n = in1.divideToIntegralValue(in2);
                        break;
                }
                System.out.println(n.toPlainString());
            }

        }
    }
    private static int Matching(String[] str,String target) {
    	for(int i=0;i<str.length;i++) {
    		if(str[i].equals(target)){
    			return i;
    		}
    	}
		return 0;
    }
} public class Main {
        public static void main(String[] args) throws Exception {
    	String[] op = {"+","-","*","/"};
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        while(true) {
            BigDecimal n = new BigDecimal(0);
            String line = br.readLine();
            String[] ary = line.split(" ");
            if(ary[1].equals("?"))
                break;
            else {
                BigDecimal in1 = new BigDecimal(ary[0]);
                BigDecimal in2 = new BigDecimal(ary[2]);
                switch(Matching(op,ary[1])) {
                    case 0:
                        n = in1.add(in2);
                        break;
                    case 1:
                        n = in1.subtract(in2);
                        break;
                    case 2:
                        n = in1.multiply(in2);
                        break;
                    case 3:
                        n = in1.divideToIntegralValue(in2);
                        break;
                }
                System.out.println(n.toPlainString());
            }

        }
    }
    private static int Matching(String[] str,String target) {
    	for(int i=0;i<str.length;i++) {
    		if(str[i].equals(target)){
    			return i;
    		}
    	}
		return 0;
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.math.BigDecimal;

public class Main {
        public static void main(String[] args) throws Exception {
    	String[] op = {"+","-","*","/"};
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        while(true) {
            BigDecimal n = new BigDecimal(0);
            String line = br.readLine();
            String[] ary = line.split(" ");
            if(ary[1].equals("?"))
                break;
            else {
                BigDecimal in1 = new BigDecimal(ary[0]);
                BigDecimal in2 = new BigDecimal(ary[2]);
                switch(Matching(op,ary[1])) {
                    case 0:
                        n = in1.add(in2);
                        break;
                    case 1:
                        n = in1.subtract(in2);
                        break;
                    case 2:
                        n = in1.multiply(in2);
                        break;
                    case 3:
                        n = in1.divideToIntegralValue(in2);
                        break;
                }
                System.out.println(n.toPlainString());
            }

        }
    }
    private static int Matching(String[] str,String target) {
    	for(int i=0;i<str.length;i++) {
    		if(str[i].equals(target)){
    			return i;
    		}
    	}
		return 0;
    }
}