import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();

		String[] strArray;
        int a, b;
        String op;

		while(true) {
			strArray = br.readLine().split(" ");
	        a = Integer.parseInt(strArray[0]);
	        b = Integer.parseInt(strArray[2]);
	        op = strArray[1];

	        if(op.equals("?")) {
	        	break;
	        }

	        switch(op) {
	        case "+":
	        	sb.append(a+b + "\n");
	        	break;
	        case "-":
	        	sb.append(a-b + "\n");
	        	break;
	        case "*":
	        	sb.append(a*b + "\n");
	        	break;
	        case "/":
	        	if(a==0) {
	        		sb.append("0" + "\n");
	        		break;
	        		}
	        	sb.append(a/b + "\n");
	        	break;
	        }
		}
        System.out.print(sb);
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();

		String[] strArray;
        int a, b;
        String op;

		while(true) {
			strArray = br.readLine().split(" ");
	        a = Integer.parseInt(strArray[0]);
	        b = Integer.parseInt(strArray[2]);
	        op = strArray[1];

	        if(op.equals("?")) {
	        	break;
	        }

	        switch(op) {
	        case "+":
	        	sb.append(a+b + "\n");
	        	break;
	        case "-":
	        	sb.append(a-b + "\n");
	        	break;
	        case "*":
	        	sb.append(a*b + "\n");
	        	break;
	        case "/":
	        	if(a==0) {
	        		sb.append("0" + "\n");
	        		break;
	        		}
	        	sb.append(a/b + "\n");
	        	break;
	        }
		}
        System.out.print(sb);
	}
} Main public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();

		String[] strArray;
        int a, b;
        String op;

		while(true) {
			strArray = br.readLine().split(" ");
	        a = Integer.parseInt(strArray[0]);
	        b = Integer.parseInt(strArray[2]);
	        op = strArray[1];

	        if(op.equals("?")) {
	        	break;
	        }

	        switch(op) {
	        case "+":
	        	sb.append(a+b + "\n");
	        	break;
	        case "-":
	        	sb.append(a-b + "\n");
	        	break;
	        case "*":
	        	sb.append(a*b + "\n");
	        	break;
	        case "/":
	        	if(a==0) {
	        		sb.append("0" + "\n");
	        		break;
	        		}
	        	sb.append(a/b + "\n");
	        	break;
	        }
		}
        System.out.print(sb);
	} main {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();

		String[] strArray;
        int a, b;
        String op;

		while(true) {
			strArray = br.readLine().split(" ");
	        a = Integer.parseInt(strArray[0]);
	        b = Integer.parseInt(strArray[2]);
	        op = strArray[1];

	        if(op.equals("?")) {
	        	break;
	        }

	        switch(op) {
	        case "+":
	        	sb.append(a+b + "\n");
	        	break;
	        case "-":
	        	sb.append(a-b + "\n");
	        	break;
	        case "*":
	        	sb.append(a*b + "\n");
	        	break;
	        case "/":
	        	if(a==0) {
	        		sb.append("0" + "\n");
	        		break;
	        		}
	        	sb.append(a/b + "\n");
	        	break;
	        }
		}
        System.out.print(sb);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) StringBuilder sb = new StringBuilder(); sb new StringBuilder() String[] strArray; strArray int a a b; b String op; op while(true) {
			strArray = br.readLine().split(" ");
	        a = Integer.parseInt(strArray[0]);
	        b = Integer.parseInt(strArray[2]);
	        op = strArray[1];

	        if(op.equals("?")) {
	        	break;
	        }

	        switch(op) {
	        case "+":
	        	sb.append(a+b + "\n");
	        	break;
	        case "-":
	        	sb.append(a-b + "\n");
	        	break;
	        case "*":
	        	sb.append(a*b + "\n");
	        	break;
	        case "/":
	        	if(a==0) {
	        		sb.append("0" + "\n");
	        		break;
	        		}
	        	sb.append(a/b + "\n");
	        	break;
	        }
		} true {
			strArray = br.readLine().split(" ");
	        a = Integer.parseInt(strArray[0]);
	        b = Integer.parseInt(strArray[2]);
	        op = strArray[1];

	        if(op.equals("?")) {
	        	break;
	        }

	        switch(op) {
	        case "+":
	        	sb.append(a+b + "\n");
	        	break;
	        case "-":
	        	sb.append(a-b + "\n");
	        	break;
	        case "*":
	        	sb.append(a*b + "\n");
	        	break;
	        case "/":
	        	if(a==0) {
	        		sb.append("0" + "\n");
	        		break;
	        		}
	        	sb.append(a/b + "\n");
	        	break;
	        }
		} strArray = br.readLine().split(" ") strArray br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " 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 op = strArray[1] op strArray[1] strArray 1 if(op.equals("?")) {
	        	break;
	        } op.equals("?") op.equals op "?" {
	        	break;
	        } break; switch(op) {
	        case "+":
	        	sb.append(a+b + "\n");
	        	break;
	        case "-":
	        	sb.append(a-b + "\n");
	        	break;
	        case "*":
	        	sb.append(a*b + "\n");
	        	break;
	        case "/":
	        	if(a==0) {
	        		sb.append("0" + "\n");
	        		break;
	        		}
	        	sb.append(a/b + "\n");
	        	break;
	        } op case "+": "+" case "+": sb.append(a+b + "\n") sb.append sb a+b + "\n" a+b + "\n" a b "\n" break; case "-": "-" case "-": sb.append(a-b + "\n") sb.append sb a-b + "\n" a-b a b "\n" break; case "*": "*" case "*": sb.append(a*b + "\n") sb.append sb a*b + "\n" a*b a b "\n" break; case "/": "/" case "/": if(a==0) {
	        		sb.append("0" + "\n");
	        		break;
	        		} a==0 a 0 {
	        		sb.append("0" + "\n");
	        		break;
	        		} sb.append("0" + "\n") sb.append sb "0" + "\n" "0" "\n" break; sb.append(a/b + "\n") sb.append sb a/b + "\n" a/b a b "\n" break; System.out.print(sb) System.out.print System.out System System.out sb String[] args args public class Main {

	public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();

		String[] strArray;
        int a, b;
        String op;

		while(true) {
			strArray = br.readLine().split(" ");
	        a = Integer.parseInt(strArray[0]);
	        b = Integer.parseInt(strArray[2]);
	        op = strArray[1];

	        if(op.equals("?")) {
	        	break;
	        }

	        switch(op) {
	        case "+":
	        	sb.append(a+b + "\n");
	        	break;
	        case "-":
	        	sb.append(a-b + "\n");
	        	break;
	        case "*":
	        	sb.append(a*b + "\n");
	        	break;
	        case "/":
	        	if(a==0) {
	        		sb.append("0" + "\n");
	        		break;
	        		}
	        	sb.append(a/b + "\n");
	        	break;
	        }
		}
        System.out.print(sb);
	}
} public class Main {

	public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();

		String[] strArray;
        int a, b;
        String op;

		while(true) {
			strArray = br.readLine().split(" ");
	        a = Integer.parseInt(strArray[0]);
	        b = Integer.parseInt(strArray[2]);
	        op = strArray[1];

	        if(op.equals("?")) {
	        	break;
	        }

	        switch(op) {
	        case "+":
	        	sb.append(a+b + "\n");
	        	break;
	        case "-":
	        	sb.append(a-b + "\n");
	        	break;
	        case "*":
	        	sb.append(a*b + "\n");
	        	break;
	        case "/":
	        	if(a==0) {
	        		sb.append("0" + "\n");
	        		break;
	        		}
	        	sb.append(a/b + "\n");
	        	break;
	        }
		}
        System.out.print(sb);
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();

		String[] strArray;
        int a, b;
        String op;

		while(true) {
			strArray = br.readLine().split(" ");
	        a = Integer.parseInt(strArray[0]);
	        b = Integer.parseInt(strArray[2]);
	        op = strArray[1];

	        if(op.equals("?")) {
	        	break;
	        }

	        switch(op) {
	        case "+":
	        	sb.append(a+b + "\n");
	        	break;
	        case "-":
	        	sb.append(a-b + "\n");
	        	break;
	        case "*":
	        	sb.append(a*b + "\n");
	        	break;
	        case "/":
	        	if(a==0) {
	        		sb.append("0" + "\n");
	        		break;
	        		}
	        	sb.append(a/b + "\n");
	        	break;
	        }
		}
        System.out.print(sb);
	}
}