import java.math.BigDecimal;
import java.util.Scanner;

public class Main {
	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		String op = scan.next();
		int b = scan.nextInt();
		int ans = 0;

		while(!op.equals("?"))
		{
			if(op.equals("+"))
			{
				ans = a + b;
				System.out.println(ans);
			}else if(op.equals("-")){
				ans = a - b;
				System.out.println(ans);
			}else if(op.equals("*")){
				ans = a * b;
				System.out.println(ans);
			}else if(op.equals("/")){
				BigDecimal BDans = new BigDecimal(a / b);
				BDans.setScale(0,BigDecimal.ROUND_DOWN);
				System.out.println(BDans);
			}else{
				System.out.println("error");
			}
			
//			switch(op)
//			{
//				case "+":
//					ans = a + b;
//					System.out.println(ans);
//					break;
//				case "-":
//					ans = a - b;
//					System.out.println(ans);
//					break;
//				case "*":
//					ans = a * b;
//					System.out.println(ans);
//					break;
//				case "/":
//					BigDecimal BDans = new BigDecimal(a / b);
//					BDans.setScale(0,BigDecimal.ROUND_DOWN);
//					System.out.println(BDans);
//					break;
//				default:
//					System.out.println("error");
//					break;
//			}
			a = scan.nextInt();
			op = scan.next();
			b = scan.nextInt();
		}
	}

} import java.math.BigDecimal; BigDecimal java.math import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		String op = scan.next();
		int b = scan.nextInt();
		int ans = 0;

		while(!op.equals("?"))
		{
			if(op.equals("+"))
			{
				ans = a + b;
				System.out.println(ans);
			}else if(op.equals("-")){
				ans = a - b;
				System.out.println(ans);
			}else if(op.equals("*")){
				ans = a * b;
				System.out.println(ans);
			}else if(op.equals("/")){
				BigDecimal BDans = new BigDecimal(a / b);
				BDans.setScale(0,BigDecimal.ROUND_DOWN);
				System.out.println(BDans);
			}else{
				System.out.println("error");
			}
			
//			switch(op)
//			{
//				case "+":
//					ans = a + b;
//					System.out.println(ans);
//					break;
//				case "-":
//					ans = a - b;
//					System.out.println(ans);
//					break;
//				case "*":
//					ans = a * b;
//					System.out.println(ans);
//					break;
//				case "/":
//					BigDecimal BDans = new BigDecimal(a / b);
//					BDans.setScale(0,BigDecimal.ROUND_DOWN);
//					System.out.println(BDans);
//					break;
//				default:
//					System.out.println("error");
//					break;
//			}
			a = scan.nextInt();
			op = scan.next();
			b = scan.nextInt();
		}
	}

} Main public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		String op = scan.next();
		int b = scan.nextInt();
		int ans = 0;

		while(!op.equals("?"))
		{
			if(op.equals("+"))
			{
				ans = a + b;
				System.out.println(ans);
			}else if(op.equals("-")){
				ans = a - b;
				System.out.println(ans);
			}else if(op.equals("*")){
				ans = a * b;
				System.out.println(ans);
			}else if(op.equals("/")){
				BigDecimal BDans = new BigDecimal(a / b);
				BDans.setScale(0,BigDecimal.ROUND_DOWN);
				System.out.println(BDans);
			}else{
				System.out.println("error");
			}
			
//			switch(op)
//			{
//				case "+":
//					ans = a + b;
//					System.out.println(ans);
//					break;
//				case "-":
//					ans = a - b;
//					System.out.println(ans);
//					break;
//				case "*":
//					ans = a * b;
//					System.out.println(ans);
//					break;
//				case "/":
//					BigDecimal BDans = new BigDecimal(a / b);
//					BDans.setScale(0,BigDecimal.ROUND_DOWN);
//					System.out.println(BDans);
//					break;
//				default:
//					System.out.println("error");
//					break;
//			}
			a = scan.nextInt();
			op = scan.next();
			b = scan.nextInt();
		}
	} main {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		String op = scan.next();
		int b = scan.nextInt();
		int ans = 0;

		while(!op.equals("?"))
		{
			if(op.equals("+"))
			{
				ans = a + b;
				System.out.println(ans);
			}else if(op.equals("-")){
				ans = a - b;
				System.out.println(ans);
			}else if(op.equals("*")){
				ans = a * b;
				System.out.println(ans);
			}else if(op.equals("/")){
				BigDecimal BDans = new BigDecimal(a / b);
				BDans.setScale(0,BigDecimal.ROUND_DOWN);
				System.out.println(BDans);
			}else{
				System.out.println("error");
			}
			
//			switch(op)
//			{
//				case "+":
//					ans = a + b;
//					System.out.println(ans);
//					break;
//				case "-":
//					ans = a - b;
//					System.out.println(ans);
//					break;
//				case "*":
//					ans = a * b;
//					System.out.println(ans);
//					break;
//				case "/":
//					BigDecimal BDans = new BigDecimal(a / b);
//					BDans.setScale(0,BigDecimal.ROUND_DOWN);
//					System.out.println(BDans);
//					break;
//				default:
//					System.out.println("error");
//					break;
//			}
			a = scan.nextInt();
			op = scan.next();
			b = scan.nextInt();
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) 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 int ans = 0; ans 0 while(!op.equals("?"))
		{
			if(op.equals("+"))
			{
				ans = a + b;
				System.out.println(ans);
			}else if(op.equals("-")){
				ans = a - b;
				System.out.println(ans);
			}else if(op.equals("*")){
				ans = a * b;
				System.out.println(ans);
			}else if(op.equals("/")){
				BigDecimal BDans = new BigDecimal(a / b);
				BDans.setScale(0,BigDecimal.ROUND_DOWN);
				System.out.println(BDans);
			}else{
				System.out.println("error");
			}
			
//			switch(op)
//			{
//				case "+":
//					ans = a + b;
//					System.out.println(ans);
//					break;
//				case "-":
//					ans = a - b;
//					System.out.println(ans);
//					break;
//				case "*":
//					ans = a * b;
//					System.out.println(ans);
//					break;
//				case "/":
//					BigDecimal BDans = new BigDecimal(a / b);
//					BDans.setScale(0,BigDecimal.ROUND_DOWN);
//					System.out.println(BDans);
//					break;
//				default:
//					System.out.println("error");
//					break;
//			}
			a = scan.nextInt();
			op = scan.next();
			b = scan.nextInt();
		} !op.equals("?") op.equals("?") op.equals op "?" {
			if(op.equals("+"))
			{
				ans = a + b;
				System.out.println(ans);
			}else if(op.equals("-")){
				ans = a - b;
				System.out.println(ans);
			}else if(op.equals("*")){
				ans = a * b;
				System.out.println(ans);
			}else if(op.equals("/")){
				BigDecimal BDans = new BigDecimal(a / b);
				BDans.setScale(0,BigDecimal.ROUND_DOWN);
				System.out.println(BDans);
			}else{
				System.out.println("error");
			}
			
//			switch(op)
//			{
//				case "+":
//					ans = a + b;
//					System.out.println(ans);
//					break;
//				case "-":
//					ans = a - b;
//					System.out.println(ans);
//					break;
//				case "*":
//					ans = a * b;
//					System.out.println(ans);
//					break;
//				case "/":
//					BigDecimal BDans = new BigDecimal(a / b);
//					BDans.setScale(0,BigDecimal.ROUND_DOWN);
//					System.out.println(BDans);
//					break;
//				default:
//					System.out.println("error");
//					break;
//			}
			a = scan.nextInt();
			op = scan.next();
			b = scan.nextInt();
		} if(op.equals("+"))
			{
				ans = a + b;
				System.out.println(ans);
			}else if(op.equals("-")){
				ans = a - b;
				System.out.println(ans);
			}else if(op.equals("*")){
				ans = a * b;
				System.out.println(ans);
			}else if(op.equals("/")){
				BigDecimal BDans = new BigDecimal(a / b);
				BDans.setScale(0,BigDecimal.ROUND_DOWN);
				System.out.println(BDans);
			}else{
				System.out.println("error");
			} op.equals("+") op.equals op "+" {
				ans = a + b;
				System.out.println(ans);
			} ans = a + b ans a + b a b System.out.println(ans) System.out.println System.out System System.out ans if(op.equals("-")){
				ans = a - b;
				System.out.println(ans);
			}else if(op.equals("*")){
				ans = a * b;
				System.out.println(ans);
			}else if(op.equals("/")){
				BigDecimal BDans = new BigDecimal(a / b);
				BDans.setScale(0,BigDecimal.ROUND_DOWN);
				System.out.println(BDans);
			}else{
				System.out.println("error");
			} op.equals("-") op.equals op "-" {
				ans = a - b;
				System.out.println(ans);
			} ans = a - b ans a - b a b System.out.println(ans) System.out.println System.out System System.out ans if(op.equals("*")){
				ans = a * b;
				System.out.println(ans);
			}else if(op.equals("/")){
				BigDecimal BDans = new BigDecimal(a / b);
				BDans.setScale(0,BigDecimal.ROUND_DOWN);
				System.out.println(BDans);
			}else{
				System.out.println("error");
			} op.equals("*") op.equals op "*" {
				ans = a * b;
				System.out.println(ans);
			} ans = a * b ans a * b a b System.out.println(ans) System.out.println System.out System System.out ans if(op.equals("/")){
				BigDecimal BDans = new BigDecimal(a / b);
				BDans.setScale(0,BigDecimal.ROUND_DOWN);
				System.out.println(BDans);
			}else{
				System.out.println("error");
			} op.equals("/") op.equals op "/" {
				BigDecimal BDans = new BigDecimal(a / b);
				BDans.setScale(0,BigDecimal.ROUND_DOWN);
				System.out.println(BDans);
			} BigDecimal BDans = new BigDecimal(a / b); BDans new BigDecimal(a / b) BDans.setScale(0,BigDecimal.ROUND_DOWN) BDans.setScale BDans 0 BigDecimal.ROUND_DOWN BigDecimal BigDecimal.ROUND_DOWN System.out.println(BDans) System.out.println System.out System System.out BDans {
				System.out.println("error");
			} System.out.println("error") System.out.println System.out System System.out "error" a = scan.nextInt() a scan.nextInt() scan.nextInt scan op = scan.next() op scan.next() scan.next scan b = scan.nextInt() b scan.nextInt() scan.nextInt scan String[] args args public class Main {
	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		String op = scan.next();
		int b = scan.nextInt();
		int ans = 0;

		while(!op.equals("?"))
		{
			if(op.equals("+"))
			{
				ans = a + b;
				System.out.println(ans);
			}else if(op.equals("-")){
				ans = a - b;
				System.out.println(ans);
			}else if(op.equals("*")){
				ans = a * b;
				System.out.println(ans);
			}else if(op.equals("/")){
				BigDecimal BDans = new BigDecimal(a / b);
				BDans.setScale(0,BigDecimal.ROUND_DOWN);
				System.out.println(BDans);
			}else{
				System.out.println("error");
			}
			
//			switch(op)
//			{
//				case "+":
//					ans = a + b;
//					System.out.println(ans);
//					break;
//				case "-":
//					ans = a - b;
//					System.out.println(ans);
//					break;
//				case "*":
//					ans = a * b;
//					System.out.println(ans);
//					break;
//				case "/":
//					BigDecimal BDans = new BigDecimal(a / b);
//					BDans.setScale(0,BigDecimal.ROUND_DOWN);
//					System.out.println(BDans);
//					break;
//				default:
//					System.out.println("error");
//					break;
//			}
			a = scan.nextInt();
			op = scan.next();
			b = scan.nextInt();
		}
	}

} public class Main {
	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		String op = scan.next();
		int b = scan.nextInt();
		int ans = 0;

		while(!op.equals("?"))
		{
			if(op.equals("+"))
			{
				ans = a + b;
				System.out.println(ans);
			}else if(op.equals("-")){
				ans = a - b;
				System.out.println(ans);
			}else if(op.equals("*")){
				ans = a * b;
				System.out.println(ans);
			}else if(op.equals("/")){
				BigDecimal BDans = new BigDecimal(a / b);
				BDans.setScale(0,BigDecimal.ROUND_DOWN);
				System.out.println(BDans);
			}else{
				System.out.println("error");
			}
			
//			switch(op)
//			{
//				case "+":
//					ans = a + b;
//					System.out.println(ans);
//					break;
//				case "-":
//					ans = a - b;
//					System.out.println(ans);
//					break;
//				case "*":
//					ans = a * b;
//					System.out.println(ans);
//					break;
//				case "/":
//					BigDecimal BDans = new BigDecimal(a / b);
//					BDans.setScale(0,BigDecimal.ROUND_DOWN);
//					System.out.println(BDans);
//					break;
//				default:
//					System.out.println("error");
//					break;
//			}
			a = scan.nextInt();
			op = scan.next();
			b = scan.nextInt();
		}
	}

} Main
import java.math.BigDecimal;
import java.util.Scanner;

public class Main {
	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		String op = scan.next();
		int b = scan.nextInt();
		int ans = 0;

		while(!op.equals("?"))
		{
			if(op.equals("+"))
			{
				ans = a + b;
				System.out.println(ans);
			}else if(op.equals("-")){
				ans = a - b;
				System.out.println(ans);
			}else if(op.equals("*")){
				ans = a * b;
				System.out.println(ans);
			}else if(op.equals("/")){
				BigDecimal BDans = new BigDecimal(a / b);
				BDans.setScale(0,BigDecimal.ROUND_DOWN);
				System.out.println(BDans);
			}else{
				System.out.println("error");
			}
			
//			switch(op)
//			{
//				case "+":
//					ans = a + b;
//					System.out.println(ans);
//					break;
//				case "-":
//					ans = a - b;
//					System.out.println(ans);
//					break;
//				case "*":
//					ans = a * b;
//					System.out.println(ans);
//					break;
//				case "/":
//					BigDecimal BDans = new BigDecimal(a / b);
//					BDans.setScale(0,BigDecimal.ROUND_DOWN);
//					System.out.println(BDans);
//					break;
//				default:
//					System.out.println("error");
//					break;
//			}
			a = scan.nextInt();
			op = scan.next();
			b = scan.nextInt();
		}
	}

}