import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;

public class Main {
	public static void main (String[] args) throws java.lang.Exception
	{
		ArrayList<String> array = new ArrayList<String>();
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int a,  b;
		while(true) {
			array.add(br.readLine());
			String s = array.get(array.size() - 1);
			String[] ary = s.split(" ");
		    if(ary[1].equals("?")) {
		    	break;
		    }
		}
		
		for(int i = 0; i < array.size() - 1; i++) {
			String s = array.get(i);
			String[] ary = s.split(" ");
			a = Integer.parseInt(ary[0]);
			b = Integer.parseInt(ary[2]);
			if(ary[1].equals("+")) {
				System.out.println(a + b);
			}
			if(ary[1].equals("-")) {
				System.out.println(a - b);
			}
			if(ary[1].equals("*")) {
				System.out.println(a * b);
			}
			if(ary[1].equals("/")) {
				System.out.println(a / b);
			}
		}

	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.ArrayList; ArrayList java.util public class Main {
	public static void main (String[] args) throws java.lang.Exception
	{
		ArrayList<String> array = new ArrayList<String>();
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int a,  b;
		while(true) {
			array.add(br.readLine());
			String s = array.get(array.size() - 1);
			String[] ary = s.split(" ");
		    if(ary[1].equals("?")) {
		    	break;
		    }
		}
		
		for(int i = 0; i < array.size() - 1; i++) {
			String s = array.get(i);
			String[] ary = s.split(" ");
			a = Integer.parseInt(ary[0]);
			b = Integer.parseInt(ary[2]);
			if(ary[1].equals("+")) {
				System.out.println(a + b);
			}
			if(ary[1].equals("-")) {
				System.out.println(a - b);
			}
			if(ary[1].equals("*")) {
				System.out.println(a * b);
			}
			if(ary[1].equals("/")) {
				System.out.println(a / b);
			}
		}

	}
} Main public static void main (String[] args) throws java.lang.Exception
	{
		ArrayList<String> array = new ArrayList<String>();
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int a,  b;
		while(true) {
			array.add(br.readLine());
			String s = array.get(array.size() - 1);
			String[] ary = s.split(" ");
		    if(ary[1].equals("?")) {
		    	break;
		    }
		}
		
		for(int i = 0; i < array.size() - 1; i++) {
			String s = array.get(i);
			String[] ary = s.split(" ");
			a = Integer.parseInt(ary[0]);
			b = Integer.parseInt(ary[2]);
			if(ary[1].equals("+")) {
				System.out.println(a + b);
			}
			if(ary[1].equals("-")) {
				System.out.println(a - b);
			}
			if(ary[1].equals("*")) {
				System.out.println(a * b);
			}
			if(ary[1].equals("/")) {
				System.out.println(a / b);
			}
		}

	} main {
		ArrayList<String> array = new ArrayList<String>();
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int a,  b;
		while(true) {
			array.add(br.readLine());
			String s = array.get(array.size() - 1);
			String[] ary = s.split(" ");
		    if(ary[1].equals("?")) {
		    	break;
		    }
		}
		
		for(int i = 0; i < array.size() - 1; i++) {
			String s = array.get(i);
			String[] ary = s.split(" ");
			a = Integer.parseInt(ary[0]);
			b = Integer.parseInt(ary[2]);
			if(ary[1].equals("+")) {
				System.out.println(a + b);
			}
			if(ary[1].equals("-")) {
				System.out.println(a - b);
			}
			if(ary[1].equals("*")) {
				System.out.println(a * b);
			}
			if(ary[1].equals("/")) {
				System.out.println(a / b);
			}
		}

	} ArrayList<String> array = new ArrayList<String>(); array new ArrayList<String>() BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int a a b; b while(true) {
			array.add(br.readLine());
			String s = array.get(array.size() - 1);
			String[] ary = s.split(" ");
		    if(ary[1].equals("?")) {
		    	break;
		    }
		} true {
			array.add(br.readLine());
			String s = array.get(array.size() - 1);
			String[] ary = s.split(" ");
		    if(ary[1].equals("?")) {
		    	break;
		    }
		} array.add(br.readLine()) array.add array br.readLine() br.readLine br String s = array.get(array.size() - 1); s array.get(array.size() - 1) array.get array array.size() - 1 array.size() array.size array 1 String[] ary = s.split(" "); ary s.split(" ") s.split s " " if(ary[1].equals("?")) {
		    	break;
		    } ary[1].equals("?") ary[1].equals ary[1] ary 1 "?" {
		    	break;
		    } break; for(int i = 0; i < array.size() - 1; i++) {
			String s = array.get(i);
			String[] ary = s.split(" ");
			a = Integer.parseInt(ary[0]);
			b = Integer.parseInt(ary[2]);
			if(ary[1].equals("+")) {
				System.out.println(a + b);
			}
			if(ary[1].equals("-")) {
				System.out.println(a - b);
			}
			if(ary[1].equals("*")) {
				System.out.println(a * b);
			}
			if(ary[1].equals("/")) {
				System.out.println(a / b);
			}
		} int i = 0; int i = 0; i 0 i < array.size() - 1 i array.size() - 1 array.size() array.size array 1 i++ i++ i {
			String s = array.get(i);
			String[] ary = s.split(" ");
			a = Integer.parseInt(ary[0]);
			b = Integer.parseInt(ary[2]);
			if(ary[1].equals("+")) {
				System.out.println(a + b);
			}
			if(ary[1].equals("-")) {
				System.out.println(a - b);
			}
			if(ary[1].equals("*")) {
				System.out.println(a * b);
			}
			if(ary[1].equals("/")) {
				System.out.println(a / b);
			}
		} {
			String s = array.get(i);
			String[] ary = s.split(" ");
			a = Integer.parseInt(ary[0]);
			b = Integer.parseInt(ary[2]);
			if(ary[1].equals("+")) {
				System.out.println(a + b);
			}
			if(ary[1].equals("-")) {
				System.out.println(a - b);
			}
			if(ary[1].equals("*")) {
				System.out.println(a * b);
			}
			if(ary[1].equals("/")) {
				System.out.println(a / b);
			}
		} String s = array.get(i); s array.get(i) array.get array i String[] ary = s.split(" "); ary s.split(" ") s.split s " " a = Integer.parseInt(ary[0]) a Integer.parseInt(ary[0]) Integer.parseInt Integer ary[0] ary 0 b = Integer.parseInt(ary[2]) b Integer.parseInt(ary[2]) Integer.parseInt Integer ary[2] ary 2 if(ary[1].equals("+")) {
				System.out.println(a + b);
			} ary[1].equals("+") ary[1].equals ary[1] ary 1 "+" {
				System.out.println(a + b);
			} System.out.println(a + b) System.out.println System.out System System.out a + b a b if(ary[1].equals("-")) {
				System.out.println(a - b);
			} ary[1].equals("-") ary[1].equals ary[1] ary 1 "-" {
				System.out.println(a - b);
			} System.out.println(a - b) System.out.println System.out System System.out a - b a b if(ary[1].equals("*")) {
				System.out.println(a * b);
			} ary[1].equals("*") ary[1].equals ary[1] ary 1 "*" {
				System.out.println(a * b);
			} System.out.println(a * b) System.out.println System.out System System.out a * b a b if(ary[1].equals("/")) {
				System.out.println(a / b);
			} ary[1].equals("/") ary[1].equals ary[1] ary 1 "/" {
				System.out.println(a / b);
			} System.out.println(a / b) System.out.println System.out System System.out a / b a b String[] args args public class Main {
	public static void main (String[] args) throws java.lang.Exception
	{
		ArrayList<String> array = new ArrayList<String>();
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int a,  b;
		while(true) {
			array.add(br.readLine());
			String s = array.get(array.size() - 1);
			String[] ary = s.split(" ");
		    if(ary[1].equals("?")) {
		    	break;
		    }
		}
		
		for(int i = 0; i < array.size() - 1; i++) {
			String s = array.get(i);
			String[] ary = s.split(" ");
			a = Integer.parseInt(ary[0]);
			b = Integer.parseInt(ary[2]);
			if(ary[1].equals("+")) {
				System.out.println(a + b);
			}
			if(ary[1].equals("-")) {
				System.out.println(a - b);
			}
			if(ary[1].equals("*")) {
				System.out.println(a * b);
			}
			if(ary[1].equals("/")) {
				System.out.println(a / b);
			}
		}

	}
} public class Main {
	public static void main (String[] args) throws java.lang.Exception
	{
		ArrayList<String> array = new ArrayList<String>();
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int a,  b;
		while(true) {
			array.add(br.readLine());
			String s = array.get(array.size() - 1);
			String[] ary = s.split(" ");
		    if(ary[1].equals("?")) {
		    	break;
		    }
		}
		
		for(int i = 0; i < array.size() - 1; i++) {
			String s = array.get(i);
			String[] ary = s.split(" ");
			a = Integer.parseInt(ary[0]);
			b = Integer.parseInt(ary[2]);
			if(ary[1].equals("+")) {
				System.out.println(a + b);
			}
			if(ary[1].equals("-")) {
				System.out.println(a - b);
			}
			if(ary[1].equals("*")) {
				System.out.println(a * b);
			}
			if(ary[1].equals("/")) {
				System.out.println(a / b);
			}
		}

	}
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;

public class Main {
	public static void main (String[] args) throws java.lang.Exception
	{
		ArrayList<String> array = new ArrayList<String>();
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int a,  b;
		while(true) {
			array.add(br.readLine());
			String s = array.get(array.size() - 1);
			String[] ary = s.split(" ");
		    if(ary[1].equals("?")) {
		    	break;
		    }
		}
		
		for(int i = 0; i < array.size() - 1; i++) {
			String s = array.get(i);
			String[] ary = s.split(" ");
			a = Integer.parseInt(ary[0]);
			b = Integer.parseInt(ary[2]);
			if(ary[1].equals("+")) {
				System.out.println(a + b);
			}
			if(ary[1].equals("-")) {
				System.out.println(a - b);
			}
			if(ary[1].equals("*")) {
				System.out.println(a * b);
			}
			if(ary[1].equals("/")) {
				System.out.println(a / b);
			}
		}

	}
}