import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
			int c=0;
			while(true) {
				int a=scan.nextInt();
				String op=scan.next();
				int b=scan.nextInt();
			if(op.equals("+")) {
				c=a+b;
			}
			else if(op.equals("-")) {
				c=a-b;
			}
			else if(op.equals("*")) {
				c=a*b;
			}
			else if(op.equals("/")) {
				c=a/b;
			}
			else if(op.equals("?")) {
				break;
			}
			System.out.printf("%d\n",c);
			}
		scan.close();
}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
			int c=0;
			while(true) {
				int a=scan.nextInt();
				String op=scan.next();
				int b=scan.nextInt();
			if(op.equals("+")) {
				c=a+b;
			}
			else if(op.equals("-")) {
				c=a-b;
			}
			else if(op.equals("*")) {
				c=a*b;
			}
			else if(op.equals("/")) {
				c=a/b;
			}
			else if(op.equals("?")) {
				break;
			}
			System.out.printf("%d\n",c);
			}
		scan.close();
}
} Main public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
			int c=0;
			while(true) {
				int a=scan.nextInt();
				String op=scan.next();
				int b=scan.nextInt();
			if(op.equals("+")) {
				c=a+b;
			}
			else if(op.equals("-")) {
				c=a-b;
			}
			else if(op.equals("*")) {
				c=a*b;
			}
			else if(op.equals("/")) {
				c=a/b;
			}
			else if(op.equals("?")) {
				break;
			}
			System.out.printf("%d\n",c);
			}
		scan.close();
} main {
		Scanner scan=new Scanner(System.in);
			int c=0;
			while(true) {
				int a=scan.nextInt();
				String op=scan.next();
				int b=scan.nextInt();
			if(op.equals("+")) {
				c=a+b;
			}
			else if(op.equals("-")) {
				c=a-b;
			}
			else if(op.equals("*")) {
				c=a*b;
			}
			else if(op.equals("/")) {
				c=a/b;
			}
			else if(op.equals("?")) {
				break;
			}
			System.out.printf("%d\n",c);
			}
		scan.close();
} Scanner scan=new Scanner(System.in); scan new Scanner(System.in) int c=0; c 0 while(true) {
				int a=scan.nextInt();
				String op=scan.next();
				int b=scan.nextInt();
			if(op.equals("+")) {
				c=a+b;
			}
			else if(op.equals("-")) {
				c=a-b;
			}
			else if(op.equals("*")) {
				c=a*b;
			}
			else if(op.equals("/")) {
				c=a/b;
			}
			else if(op.equals("?")) {
				break;
			}
			System.out.printf("%d\n",c);
			} true {
				int a=scan.nextInt();
				String op=scan.next();
				int b=scan.nextInt();
			if(op.equals("+")) {
				c=a+b;
			}
			else if(op.equals("-")) {
				c=a-b;
			}
			else if(op.equals("*")) {
				c=a*b;
			}
			else if(op.equals("/")) {
				c=a/b;
			}
			else if(op.equals("?")) {
				break;
			}
			System.out.printf("%d\n",c);
			} int a=scan.nextInt(); a scan.nextInt() scan.nextInt scan String op=scan.next(); op scan.next() scan.next scan int b=scan.nextInt(); b scan.nextInt() scan.nextInt scan if(op.equals("+")) {
				c=a+b;
			}
			else if(op.equals("-")) {
				c=a-b;
			}
			else if(op.equals("*")) {
				c=a*b;
			}
			else if(op.equals("/")) {
				c=a/b;
			}
			else if(op.equals("?")) {
				break;
			} op.equals("+") op.equals op "+" {
				c=a+b;
			} c=a+b c a+b a b if(op.equals("-")) {
				c=a-b;
			}
			else if(op.equals("*")) {
				c=a*b;
			}
			else if(op.equals("/")) {
				c=a/b;
			}
			else if(op.equals("?")) {
				break;
			} op.equals("-") op.equals op "-" {
				c=a-b;
			} c=a-b c a-b a b if(op.equals("*")) {
				c=a*b;
			}
			else if(op.equals("/")) {
				c=a/b;
			}
			else if(op.equals("?")) {
				break;
			} op.equals("*") op.equals op "*" {
				c=a*b;
			} c=a*b c a*b a b if(op.equals("/")) {
				c=a/b;
			}
			else if(op.equals("?")) {
				break;
			} op.equals("/") op.equals op "/" {
				c=a/b;
			} c=a/b c a/b a b if(op.equals("?")) {
				break;
			} op.equals("?") op.equals op "?" {
				break;
			} break; System.out.printf("%d\n",c) System.out.printf System.out System System.out "%d\n" c scan.close() scan.close scan String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
			int c=0;
			while(true) {
				int a=scan.nextInt();
				String op=scan.next();
				int b=scan.nextInt();
			if(op.equals("+")) {
				c=a+b;
			}
			else if(op.equals("-")) {
				c=a-b;
			}
			else if(op.equals("*")) {
				c=a*b;
			}
			else if(op.equals("/")) {
				c=a/b;
			}
			else if(op.equals("?")) {
				break;
			}
			System.out.printf("%d\n",c);
			}
		scan.close();
}
} public class Main {
	public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
			int c=0;
			while(true) {
				int a=scan.nextInt();
				String op=scan.next();
				int b=scan.nextInt();
			if(op.equals("+")) {
				c=a+b;
			}
			else if(op.equals("-")) {
				c=a-b;
			}
			else if(op.equals("*")) {
				c=a*b;
			}
			else if(op.equals("/")) {
				c=a/b;
			}
			else if(op.equals("?")) {
				break;
			}
			System.out.printf("%d\n",c);
			}
		scan.close();
}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
			int c=0;
			while(true) {
				int a=scan.nextInt();
				String op=scan.next();
				int b=scan.nextInt();
			if(op.equals("+")) {
				c=a+b;
			}
			else if(op.equals("-")) {
				c=a-b;
			}
			else if(op.equals("*")) {
				c=a*b;
			}
			else if(op.equals("/")) {
				c=a/b;
			}
			else if(op.equals("?")) {
				break;
			}
			System.out.printf("%d\n",c);
			}
		scan.close();
}
}
