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

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????


		Scanner scan = new Scanner(System.in);
		ArrayList<Integer> list = new ArrayList<Integer>();

		String a = null;
		String b = null;
		String c = null;


		while(scan.hasNext()){

			a = scan.next();
			b = scan.next();
			c = scan.next();

			if(!"?".equals(b)){

				int intA = 0;
				int intC = 0;
				try{
					intA = Integer.parseInt(a);
					intC = Integer.parseInt(c);
				}catch(NumberFormatException e){
					System.out.println(e);
				}

				int intAnser = 0;

				if("+".equals(b)){

					intAnser = intA + intC;
				}else if("-".equals(b)){

					intAnser = intA - intC;
				}else if("*".equals(b)){

					intAnser = intA * intC;
				}else{

					intAnser = intA / intC;
				}


				list.add(intAnser);

			}else{

				scan.close();
				break;
			}

		}

		for(int i = 0; i < list.size(); i++){

			int intResult =list.get(i);
			System.out.println(intResult);
		}


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

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????


		Scanner scan = new Scanner(System.in);
		ArrayList<Integer> list = new ArrayList<Integer>();

		String a = null;
		String b = null;
		String c = null;


		while(scan.hasNext()){

			a = scan.next();
			b = scan.next();
			c = scan.next();

			if(!"?".equals(b)){

				int intA = 0;
				int intC = 0;
				try{
					intA = Integer.parseInt(a);
					intC = Integer.parseInt(c);
				}catch(NumberFormatException e){
					System.out.println(e);
				}

				int intAnser = 0;

				if("+".equals(b)){

					intAnser = intA + intC;
				}else if("-".equals(b)){

					intAnser = intA - intC;
				}else if("*".equals(b)){

					intAnser = intA * intC;
				}else{

					intAnser = intA / intC;
				}


				list.add(intAnser);

			}else{

				scan.close();
				break;
			}

		}

		for(int i = 0; i < list.size(); i++){

			int intResult =list.get(i);
			System.out.println(intResult);
		}


	}
} Main public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????


		Scanner scan = new Scanner(System.in);
		ArrayList<Integer> list = new ArrayList<Integer>();

		String a = null;
		String b = null;
		String c = null;


		while(scan.hasNext()){

			a = scan.next();
			b = scan.next();
			c = scan.next();

			if(!"?".equals(b)){

				int intA = 0;
				int intC = 0;
				try{
					intA = Integer.parseInt(a);
					intC = Integer.parseInt(c);
				}catch(NumberFormatException e){
					System.out.println(e);
				}

				int intAnser = 0;

				if("+".equals(b)){

					intAnser = intA + intC;
				}else if("-".equals(b)){

					intAnser = intA - intC;
				}else if("*".equals(b)){

					intAnser = intA * intC;
				}else{

					intAnser = intA / intC;
				}


				list.add(intAnser);

			}else{

				scan.close();
				break;
			}

		}

		for(int i = 0; i < list.size(); i++){

			int intResult =list.get(i);
			System.out.println(intResult);
		}


	} main {
		// TODO ?????????????????????????????????????????????


		Scanner scan = new Scanner(System.in);
		ArrayList<Integer> list = new ArrayList<Integer>();

		String a = null;
		String b = null;
		String c = null;


		while(scan.hasNext()){

			a = scan.next();
			b = scan.next();
			c = scan.next();

			if(!"?".equals(b)){

				int intA = 0;
				int intC = 0;
				try{
					intA = Integer.parseInt(a);
					intC = Integer.parseInt(c);
				}catch(NumberFormatException e){
					System.out.println(e);
				}

				int intAnser = 0;

				if("+".equals(b)){

					intAnser = intA + intC;
				}else if("-".equals(b)){

					intAnser = intA - intC;
				}else if("*".equals(b)){

					intAnser = intA * intC;
				}else{

					intAnser = intA / intC;
				}


				list.add(intAnser);

			}else{

				scan.close();
				break;
			}

		}

		for(int i = 0; i < list.size(); i++){

			int intResult =list.get(i);
			System.out.println(intResult);
		}


	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) ArrayList<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() String a = null; a null String b = null; b null String c = null; c null while(scan.hasNext()){

			a = scan.next();
			b = scan.next();
			c = scan.next();

			if(!"?".equals(b)){

				int intA = 0;
				int intC = 0;
				try{
					intA = Integer.parseInt(a);
					intC = Integer.parseInt(c);
				}catch(NumberFormatException e){
					System.out.println(e);
				}

				int intAnser = 0;

				if("+".equals(b)){

					intAnser = intA + intC;
				}else if("-".equals(b)){

					intAnser = intA - intC;
				}else if("*".equals(b)){

					intAnser = intA * intC;
				}else{

					intAnser = intA / intC;
				}


				list.add(intAnser);

			}else{

				scan.close();
				break;
			}

		} scan.hasNext() scan.hasNext scan {

			a = scan.next();
			b = scan.next();
			c = scan.next();

			if(!"?".equals(b)){

				int intA = 0;
				int intC = 0;
				try{
					intA = Integer.parseInt(a);
					intC = Integer.parseInt(c);
				}catch(NumberFormatException e){
					System.out.println(e);
				}

				int intAnser = 0;

				if("+".equals(b)){

					intAnser = intA + intC;
				}else if("-".equals(b)){

					intAnser = intA - intC;
				}else if("*".equals(b)){

					intAnser = intA * intC;
				}else{

					intAnser = intA / intC;
				}


				list.add(intAnser);

			}else{

				scan.close();
				break;
			}

		} a = scan.next() a scan.next() scan.next scan b = scan.next() b scan.next() scan.next scan c = scan.next() c scan.next() scan.next scan if(!"?".equals(b)){

				int intA = 0;
				int intC = 0;
				try{
					intA = Integer.parseInt(a);
					intC = Integer.parseInt(c);
				}catch(NumberFormatException e){
					System.out.println(e);
				}

				int intAnser = 0;

				if("+".equals(b)){

					intAnser = intA + intC;
				}else if("-".equals(b)){

					intAnser = intA - intC;
				}else if("*".equals(b)){

					intAnser = intA * intC;
				}else{

					intAnser = intA / intC;
				}


				list.add(intAnser);

			}else{

				scan.close();
				break;
			} !"?".equals(b) "?".equals(b) "?".equals "?" b {

				int intA = 0;
				int intC = 0;
				try{
					intA = Integer.parseInt(a);
					intC = Integer.parseInt(c);
				}catch(NumberFormatException e){
					System.out.println(e);
				}

				int intAnser = 0;

				if("+".equals(b)){

					intAnser = intA + intC;
				}else if("-".equals(b)){

					intAnser = intA - intC;
				}else if("*".equals(b)){

					intAnser = intA * intC;
				}else{

					intAnser = intA / intC;
				}


				list.add(intAnser);

			} int intA = 0; intA 0 int intC = 0; intC 0 try{
					intA = Integer.parseInt(a);
					intC = Integer.parseInt(c);
				}catch(NumberFormatException e){
					System.out.println(e);
				} catch(NumberFormatException e){
					System.out.println(e);
				} NumberFormatException e {
					System.out.println(e);
				} System.out.println(e) System.out.println System.out System System.out e {
					intA = Integer.parseInt(a);
					intC = Integer.parseInt(c);
				} intA = Integer.parseInt(a) intA Integer.parseInt(a) Integer.parseInt Integer a intC = Integer.parseInt(c) intC Integer.parseInt(c) Integer.parseInt Integer c int intAnser = 0; intAnser 0 if("+".equals(b)){

					intAnser = intA + intC;
				}else if("-".equals(b)){

					intAnser = intA - intC;
				}else if("*".equals(b)){

					intAnser = intA * intC;
				}else{

					intAnser = intA / intC;
				} "+".equals(b) "+".equals "+" b {

					intAnser = intA + intC;
				} intAnser = intA + intC intAnser intA + intC intA intC if("-".equals(b)){

					intAnser = intA - intC;
				}else if("*".equals(b)){

					intAnser = intA * intC;
				}else{

					intAnser = intA / intC;
				} "-".equals(b) "-".equals "-" b {

					intAnser = intA - intC;
				} intAnser = intA - intC intAnser intA - intC intA intC if("*".equals(b)){

					intAnser = intA * intC;
				}else{

					intAnser = intA / intC;
				} "*".equals(b) "*".equals "*" b {

					intAnser = intA * intC;
				} intAnser = intA * intC intAnser intA * intC intA intC {

					intAnser = intA / intC;
				} intAnser = intA / intC intAnser intA / intC intA intC list.add(intAnser) list.add list intAnser {

				scan.close();
				break;
			} scan.close() scan.close scan break; for(int i = 0; i < list.size(); i++){

			int intResult =list.get(i);
			System.out.println(intResult);
		} int i = 0; int i = 0; i 0 i < list.size() i list.size() list.size list i++ i++ i {

			int intResult =list.get(i);
			System.out.println(intResult);
		} {

			int intResult =list.get(i);
			System.out.println(intResult);
		} int intResult =list.get(i); intResult list.get(i) list.get list i System.out.println(intResult) System.out.println System.out System System.out intResult String[] args args public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????


		Scanner scan = new Scanner(System.in);
		ArrayList<Integer> list = new ArrayList<Integer>();

		String a = null;
		String b = null;
		String c = null;


		while(scan.hasNext()){

			a = scan.next();
			b = scan.next();
			c = scan.next();

			if(!"?".equals(b)){

				int intA = 0;
				int intC = 0;
				try{
					intA = Integer.parseInt(a);
					intC = Integer.parseInt(c);
				}catch(NumberFormatException e){
					System.out.println(e);
				}

				int intAnser = 0;

				if("+".equals(b)){

					intAnser = intA + intC;
				}else if("-".equals(b)){

					intAnser = intA - intC;
				}else if("*".equals(b)){

					intAnser = intA * intC;
				}else{

					intAnser = intA / intC;
				}


				list.add(intAnser);

			}else{

				scan.close();
				break;
			}

		}

		for(int i = 0; i < list.size(); i++){

			int intResult =list.get(i);
			System.out.println(intResult);
		}


	}
} public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????


		Scanner scan = new Scanner(System.in);
		ArrayList<Integer> list = new ArrayList<Integer>();

		String a = null;
		String b = null;
		String c = null;


		while(scan.hasNext()){

			a = scan.next();
			b = scan.next();
			c = scan.next();

			if(!"?".equals(b)){

				int intA = 0;
				int intC = 0;
				try{
					intA = Integer.parseInt(a);
					intC = Integer.parseInt(c);
				}catch(NumberFormatException e){
					System.out.println(e);
				}

				int intAnser = 0;

				if("+".equals(b)){

					intAnser = intA + intC;
				}else if("-".equals(b)){

					intAnser = intA - intC;
				}else if("*".equals(b)){

					intAnser = intA * intC;
				}else{

					intAnser = intA / intC;
				}


				list.add(intAnser);

			}else{

				scan.close();
				break;
			}

		}

		for(int i = 0; i < list.size(); i++){

			int intResult =list.get(i);
			System.out.println(intResult);
		}


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

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????


		Scanner scan = new Scanner(System.in);
		ArrayList<Integer> list = new ArrayList<Integer>();

		String a = null;
		String b = null;
		String c = null;


		while(scan.hasNext()){

			a = scan.next();
			b = scan.next();
			c = scan.next();

			if(!"?".equals(b)){

				int intA = 0;
				int intC = 0;
				try{
					intA = Integer.parseInt(a);
					intC = Integer.parseInt(c);
				}catch(NumberFormatException e){
					System.out.println(e);
				}

				int intAnser = 0;

				if("+".equals(b)){

					intAnser = intA + intC;
				}else if("-".equals(b)){

					intAnser = intA - intC;
				}else if("*".equals(b)){

					intAnser = intA * intC;
				}else{

					intAnser = intA / intC;
				}


				list.add(intAnser);

			}else{

				scan.close();
				break;
			}

		}

		for(int i = 0; i < list.size(); i++){

			int intResult =list.get(i);
			System.out.println(intResult);
		}


	}
}