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

public class Main {

	public static void main(String[] args){
		ArrayList<String> ary = new ArrayList<String>();
		int x,y;
		String op;
		String tmp;
		int cnt = 0;
		Scanner sc = new Scanner(System.in);

		x = sc.nextInt();
		op = sc.next();
		y = sc.nextInt();
		tmp = ArrayAdder(x,y,op);
		ary.add(tmp);
		cnt++;

		while(!tmp.equals("end")){
			sc.hasNext();
			x = sc.nextInt();
			op = sc.next();
			y = sc.nextInt();
			tmp = ArrayAdder(x,y,op);
			ary.add(tmp);
			cnt++;
		}

		for(int i=0;i<cnt-1;i++){
			System.out.println(ary.get(i));
		}
		sc.close();
	}

	public static String ArrayAdder(int x,int y,String op){
		String result = "";
		if(op.equals("+")){
			result = "" + (x + y);
		}else if(op.equals("-")){
			result = "" + (x - y);
		}else if(op.equals("*")){
			result = "" + (x * y);
		}else if(op.equals("/")){
			result = "" + (x / y);
		}else if(op.equals("?")){
			result = "end";
		}else if(x==0 && y==0){
			result = "end";
		}
		return result;
	}

} import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args){
		ArrayList<String> ary = new ArrayList<String>();
		int x,y;
		String op;
		String tmp;
		int cnt = 0;
		Scanner sc = new Scanner(System.in);

		x = sc.nextInt();
		op = sc.next();
		y = sc.nextInt();
		tmp = ArrayAdder(x,y,op);
		ary.add(tmp);
		cnt++;

		while(!tmp.equals("end")){
			sc.hasNext();
			x = sc.nextInt();
			op = sc.next();
			y = sc.nextInt();
			tmp = ArrayAdder(x,y,op);
			ary.add(tmp);
			cnt++;
		}

		for(int i=0;i<cnt-1;i++){
			System.out.println(ary.get(i));
		}
		sc.close();
	}

	public static String ArrayAdder(int x,int y,String op){
		String result = "";
		if(op.equals("+")){
			result = "" + (x + y);
		}else if(op.equals("-")){
			result = "" + (x - y);
		}else if(op.equals("*")){
			result = "" + (x * y);
		}else if(op.equals("/")){
			result = "" + (x / y);
		}else if(op.equals("?")){
			result = "end";
		}else if(x==0 && y==0){
			result = "end";
		}
		return result;
	}

} Main public static void main(String[] args){
		ArrayList<String> ary = new ArrayList<String>();
		int x,y;
		String op;
		String tmp;
		int cnt = 0;
		Scanner sc = new Scanner(System.in);

		x = sc.nextInt();
		op = sc.next();
		y = sc.nextInt();
		tmp = ArrayAdder(x,y,op);
		ary.add(tmp);
		cnt++;

		while(!tmp.equals("end")){
			sc.hasNext();
			x = sc.nextInt();
			op = sc.next();
			y = sc.nextInt();
			tmp = ArrayAdder(x,y,op);
			ary.add(tmp);
			cnt++;
		}

		for(int i=0;i<cnt-1;i++){
			System.out.println(ary.get(i));
		}
		sc.close();
	} main {
		ArrayList<String> ary = new ArrayList<String>();
		int x,y;
		String op;
		String tmp;
		int cnt = 0;
		Scanner sc = new Scanner(System.in);

		x = sc.nextInt();
		op = sc.next();
		y = sc.nextInt();
		tmp = ArrayAdder(x,y,op);
		ary.add(tmp);
		cnt++;

		while(!tmp.equals("end")){
			sc.hasNext();
			x = sc.nextInt();
			op = sc.next();
			y = sc.nextInt();
			tmp = ArrayAdder(x,y,op);
			ary.add(tmp);
			cnt++;
		}

		for(int i=0;i<cnt-1;i++){
			System.out.println(ary.get(i));
		}
		sc.close();
	} ArrayList<String> ary = new ArrayList<String>(); ary new ArrayList<String>() int x x y; y String op; op String tmp; tmp int cnt = 0; cnt 0 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) x = sc.nextInt() x sc.nextInt() sc.nextInt sc op = sc.next() op sc.next() sc.next sc y = sc.nextInt() y sc.nextInt() sc.nextInt sc tmp = ArrayAdder(x,y,op) tmp ArrayAdder(x,y,op) ArrayAdder x y op ary.add(tmp) ary.add ary tmp cnt++ cnt while(!tmp.equals("end")){
			sc.hasNext();
			x = sc.nextInt();
			op = sc.next();
			y = sc.nextInt();
			tmp = ArrayAdder(x,y,op);
			ary.add(tmp);
			cnt++;
		} !tmp.equals("end") tmp.equals("end") tmp.equals tmp "end" {
			sc.hasNext();
			x = sc.nextInt();
			op = sc.next();
			y = sc.nextInt();
			tmp = ArrayAdder(x,y,op);
			ary.add(tmp);
			cnt++;
		} sc.hasNext() sc.hasNext sc x = sc.nextInt() x sc.nextInt() sc.nextInt sc op = sc.next() op sc.next() sc.next sc y = sc.nextInt() y sc.nextInt() sc.nextInt sc tmp = ArrayAdder(x,y,op) tmp ArrayAdder(x,y,op) ArrayAdder x y op ary.add(tmp) ary.add ary tmp cnt++ cnt for(int i=0;i<cnt-1;i++){
			System.out.println(ary.get(i));
		} int i=0; int i=0; i 0 i<cnt-1 i cnt-1 cnt 1 i++ i++ i {
			System.out.println(ary.get(i));
		} {
			System.out.println(ary.get(i));
		} System.out.println(ary.get(i)) System.out.println System.out System System.out ary.get(i) ary.get ary i sc.close() sc.close sc String[] args args public static String ArrayAdder(int x,int y,String op){
		String result = "";
		if(op.equals("+")){
			result = "" + (x + y);
		}else if(op.equals("-")){
			result = "" + (x - y);
		}else if(op.equals("*")){
			result = "" + (x * y);
		}else if(op.equals("/")){
			result = "" + (x / y);
		}else if(op.equals("?")){
			result = "end";
		}else if(x==0 && y==0){
			result = "end";
		}
		return result;
	} ArrayAdder {
		String result = "";
		if(op.equals("+")){
			result = "" + (x + y);
		}else if(op.equals("-")){
			result = "" + (x - y);
		}else if(op.equals("*")){
			result = "" + (x * y);
		}else if(op.equals("/")){
			result = "" + (x / y);
		}else if(op.equals("?")){
			result = "end";
		}else if(x==0 && y==0){
			result = "end";
		}
		return result;
	} String result = ""; result "" if(op.equals("+")){
			result = "" + (x + y);
		}else if(op.equals("-")){
			result = "" + (x - y);
		}else if(op.equals("*")){
			result = "" + (x * y);
		}else if(op.equals("/")){
			result = "" + (x / y);
		}else if(op.equals("?")){
			result = "end";
		}else if(x==0 && y==0){
			result = "end";
		} op.equals("+") op.equals op "+" {
			result = "" + (x + y);
		} result = "" + (x + y) result "" + (x + y) "" (x + y) x y if(op.equals("-")){
			result = "" + (x - y);
		}else if(op.equals("*")){
			result = "" + (x * y);
		}else if(op.equals("/")){
			result = "" + (x / y);
		}else if(op.equals("?")){
			result = "end";
		}else if(x==0 && y==0){
			result = "end";
		} op.equals("-") op.equals op "-" {
			result = "" + (x - y);
		} result = "" + (x - y) result "" + (x - y) "" (x - y) x y if(op.equals("*")){
			result = "" + (x * y);
		}else if(op.equals("/")){
			result = "" + (x / y);
		}else if(op.equals("?")){
			result = "end";
		}else if(x==0 && y==0){
			result = "end";
		} op.equals("*") op.equals op "*" {
			result = "" + (x * y);
		} result = "" + (x * y) result "" + (x * y) "" (x * y) x y if(op.equals("/")){
			result = "" + (x / y);
		}else if(op.equals("?")){
			result = "end";
		}else if(x==0 && y==0){
			result = "end";
		} op.equals("/") op.equals op "/" {
			result = "" + (x / y);
		} result = "" + (x / y) result "" + (x / y) "" (x / y) x y if(op.equals("?")){
			result = "end";
		}else if(x==0 && y==0){
			result = "end";
		} op.equals("?") op.equals op "?" {
			result = "end";
		} result = "end" result "end" if(x==0 && y==0){
			result = "end";
		} x==0 && y==0 x==0 x 0 y==0 y 0 {
			result = "end";
		} result = "end" result "end" return result; result int x x int y y String op op public class Main {

	public static void main(String[] args){
		ArrayList<String> ary = new ArrayList<String>();
		int x,y;
		String op;
		String tmp;
		int cnt = 0;
		Scanner sc = new Scanner(System.in);

		x = sc.nextInt();
		op = sc.next();
		y = sc.nextInt();
		tmp = ArrayAdder(x,y,op);
		ary.add(tmp);
		cnt++;

		while(!tmp.equals("end")){
			sc.hasNext();
			x = sc.nextInt();
			op = sc.next();
			y = sc.nextInt();
			tmp = ArrayAdder(x,y,op);
			ary.add(tmp);
			cnt++;
		}

		for(int i=0;i<cnt-1;i++){
			System.out.println(ary.get(i));
		}
		sc.close();
	}

	public static String ArrayAdder(int x,int y,String op){
		String result = "";
		if(op.equals("+")){
			result = "" + (x + y);
		}else if(op.equals("-")){
			result = "" + (x - y);
		}else if(op.equals("*")){
			result = "" + (x * y);
		}else if(op.equals("/")){
			result = "" + (x / y);
		}else if(op.equals("?")){
			result = "end";
		}else if(x==0 && y==0){
			result = "end";
		}
		return result;
	}

} public class Main {

	public static void main(String[] args){
		ArrayList<String> ary = new ArrayList<String>();
		int x,y;
		String op;
		String tmp;
		int cnt = 0;
		Scanner sc = new Scanner(System.in);

		x = sc.nextInt();
		op = sc.next();
		y = sc.nextInt();
		tmp = ArrayAdder(x,y,op);
		ary.add(tmp);
		cnt++;

		while(!tmp.equals("end")){
			sc.hasNext();
			x = sc.nextInt();
			op = sc.next();
			y = sc.nextInt();
			tmp = ArrayAdder(x,y,op);
			ary.add(tmp);
			cnt++;
		}

		for(int i=0;i<cnt-1;i++){
			System.out.println(ary.get(i));
		}
		sc.close();
	}

	public static String ArrayAdder(int x,int y,String op){
		String result = "";
		if(op.equals("+")){
			result = "" + (x + y);
		}else if(op.equals("-")){
			result = "" + (x - y);
		}else if(op.equals("*")){
			result = "" + (x * y);
		}else if(op.equals("/")){
			result = "" + (x / y);
		}else if(op.equals("?")){
			result = "end";
		}else if(x==0 && y==0){
			result = "end";
		}
		return result;
	}

} Main
import java.util.ArrayList;
import java.util.Scanner;

public class Main {

	public static void main(String[] args){
		ArrayList<String> ary = new ArrayList<String>();
		int x,y;
		String op;
		String tmp;
		int cnt = 0;
		Scanner sc = new Scanner(System.in);

		x = sc.nextInt();
		op = sc.next();
		y = sc.nextInt();
		tmp = ArrayAdder(x,y,op);
		ary.add(tmp);
		cnt++;

		while(!tmp.equals("end")){
			sc.hasNext();
			x = sc.nextInt();
			op = sc.next();
			y = sc.nextInt();
			tmp = ArrayAdder(x,y,op);
			ary.add(tmp);
			cnt++;
		}

		for(int i=0;i<cnt-1;i++){
			System.out.println(ary.get(i));
		}
		sc.close();
	}

	public static String ArrayAdder(int x,int y,String op){
		String result = "";
		if(op.equals("+")){
			result = "" + (x + y);
		}else if(op.equals("-")){
			result = "" + (x - y);
		}else if(op.equals("*")){
			result = "" + (x * y);
		}else if(op.equals("/")){
			result = "" + (x / y);
		}else if(op.equals("?")){
			result = "end";
		}else if(x==0 && y==0){
			result = "end";
		}
		return result;
	}

}