Write a program which reads two integers a, b and an operator op, and then prints the value of a op b.

The operator op is '+', '-', '*' or '/' (sum, difference, product or quotient). The division should truncate any fractional part.

Constraints

* 0 ≤ a, b ≤ 20000
* No divisions by zero are given.

Input

The input consists of multiple datasets. Each dataset is given in the following format.


a op b


The input ends with a dataset where op = '?'. Your program should not process for this dataset.

Output

For each dataset, print the value in a line.

Example

Input

1 + 2
56 - 18
13 * 2
100 / 10
27 + 81
0 ? 0


Output

3
38
26
10
108

Source: aizu | Difficulty: UNKNOWN_DIFFICULTY


Solutions:
while 1:
	(a, op, b) = input().split()
	(a, b) = (int(a), int(b))
	if op == '+':
		print(a + b)
	if op == '-':
		print(a - b)
	if op == '*':
		print(a * b)
	if op == '/':
		print(int(a / b))
	if op == '?':
		break


while True:
	(a, op, b) = input().split()
	if op == '?':
		break
	if op == '/':
		op = '//'
	print(eval(f'{a}{op}{b}'))


OP = {'+': lambda a, b: a + b, '-': lambda a, b: a - b, '*': lambda a, b: a * b, '/': lambda a, b: a // b}
while True:
	(a, op, b) = [s for s in input().split()]
	if op == '?':
		break
	print(OP[op](int(a), int(b)))


while True:
	x = input()
	if '?' in x:
		break
	result = eval(x)
	print(int(result))


while 1:
	try:
		print(eval(input().replace(' ', '').replace('/', '//')))
	except:
		break


while True:
	s = input().split()
	if s[1] == '?':
		break
	elif s[1] == '/':
		s[1] = '//'
	print(eval(' '.join(s)))


while True:
	(a, op, b) = input().split(' ')
	if op == '+':
		print(int(a) + int(b))
	elif op == '-':
		print(int(a) - int(b))
	elif op == '*':
		print(int(a) * int(b))
	elif op == '/':
		print(int(a) // int(b))
	elif op == '?':
		break


while True:
	a = input()
	if '?' in a:
		break
	print(eval(a.replace('/', '//')))


import math
dataset = []
while True:
	s = input().split()
	if s[1] == '?':
		break
	else:
		dataset.append(s)
for i in dataset:
	formura = ''.join(i)
	print(math.floor(eval(formura)))


while True:
	a_op_b = input()
	if a_op_b.split()[1] == '?':
		break
	else:
		print(int(eval(a_op_b)))


n = 'kksohandsome'
while n != '0 ? 0':
	n = input()
	if '?' in n:
		break
	print(int(eval(n)))


while True:
	l = input()
	if '?' in l:
		break
	print(int(eval(l)))


while 1:
	(a, o, p) = input().split()
	if o == '?':
		break
	print(int(eval(a + o + p)))


while True:
	(a, op, b) = input().split()
	a = int(a)
	b = int(b)
	if op == '+':
		print(a + b)
	elif op == '-':
		print(a - b)
	elif op == '*':
		print(a * b)
	elif op == '/':
		print(a // b)
	else:
		break


exp = input()
while '?' not in exp:
	print(eval(exp.replace('/', '//')))
	exp = input()


while True:
	(a, b, c) = input().split()
	a = int(a)
	c = int(c)
	if b == '?':
		break
	if b == '+':
		print(a + c)
	if b == '-':
		print(a - c)
	if b == '*':
		print(a * c)
	if b == '/':
		print(a // c)


while 1:
	n = input()
	if '?' in n:
		break
	print(int(eval(n)))


while 1:
	(a, op, b) = input().split()
	a = int(a)
	b = int(b)
	if op == '+':
		print(a + b)
	if op == '-':
		print(a - b)
	if op == '*':
		print(a * b)
	if op == '/':
		print(a // b)
	if op == '?':
		break


while True:
	(a, op, b) = list(input().split())
	if op == '?':
		break
	print(int(eval(a + op + b)))


inputs = []
while True:
	s = input().split(' ')
	if s[1] == '?':
		break
	t = ' '.join(s)
	inputs.append(int(eval(t)))
for ans in inputs:
	print(ans)


import math
while True:
	S = input()
	if '?' in S:
		exit()
	print(math.floor(eval(S)))


while True:
	n = input()
	if n.split()[1] == '?':
		break
	print(int(eval(n)))


while True:
	(x, y, z) = input().split()
	x = int(x)
	z = int(z)
	if y == '+':
		print(int(x + z))
	elif y == '-':
		print(int(x - z))
	elif y == '*':
		print(int(x * z))
	elif y == '/':
		print(int(x / z))
	else:
		break


while True:
	(a, op, b) = map(str, input().split())
	a = int(a)
	b = int(b)
	if op == '+':
		print(a + b)
	elif op == '-':
		print(a - b)
	elif op == '*':
		print(a * b)
	elif op == '/':
		print(a // b)
	else:
		break


while True:
	line = input()
	if '?' in line:
		break
	print(int(eval(line)))


while True:
	s = input()
	s = s.replace('/', '//')
	if '?' in s:
		break
	else:
		print(eval(s))


while True:
	v_list = input().split()
	a = int(v_list[0])
	b = int(v_list[2])
	op = v_list[1]
	if op == '?':
		break
	if op == '+':
		print(a + b)
	elif op == '-':
		print(a - b)
	elif op == '*':
		print(a * b)
	else:
		print(a // b)


while True:
	(a, b, c) = input().split()
	if b == '?':
		break
	elif b == '+':
		s = int(a) + int(c)
	elif b == '-':
		s = int(a) - int(c)
	elif b == '*':
		s = int(a) * int(c)
	else:
		s = int(a) / int(c)
	print(int(s))


while True:
	try:
		print(int(eval(input())))
	except Exception as e:
		break


while True:
	t = input()
	if t.find('?') > 0:
		break
	print(int(eval(t)))


import sys
for i in sys.stdin:
	if '?' in i:
		break
	else:
		print(eval(i.replace('/', '//')))


while 1:
	(a, op, b) = input().split()
	a = int(a)
	b = int(b)
	if op == '?':
		break
	if op == '+':
		print(a + b)
	if op == '-':
		print(a - b)
	if op == '*':
		print(a * b)
	if op == '/':
		print(a // b)


while True:
	(a, b, c) = [i for i in input().split()]
	a = int(a)
	c = int(c)
	if b == '+':
		print(a + c)
	elif b == '-':
		print(a - c)
	elif b == '*':
		print(a * c)
	elif b == '/':
		print(a // c)
	else:
		break


while True:
	(a, op, b) = input().split(' ')
	if op == '?':
		break
	if op == '/':
		op = '//'
	print(eval(a + op + b))


while True:
	(a, op, b) = input().split()
	(a, b) = (int(a), int(b))
	if op == '+':
		print(a + b)
	elif op == '-':
		print(a - b)
	elif op == '*':
		print(a * b)
	elif op == '/':
		print(a // b)
	else:
		break


while 1:
	n = input().split()
	a = int(n[0])
	op = n[1]
	b = int(n[2])
	if op == '?':
		break
	if op == '+':
		print(a + b)
	elif op == '-':
		print(a - b)
	elif op == '*':
		print(a * b)
	elif op == '/':
		print(int(a / b))


from operator import *
while True:
	(a, op, b) = input().split()
	if op == '?':
		break
	print({'+': add, '-': sub, '/': floordiv, '*': mul}[op](int(a), int(b)))


while True:
	i = input('')
	if '?' not in i:
		print(int(eval(i)))
	else:
		break


while True:
	(a, op, b) = list(input().split())
	a = int(a)
	b = int(b)
	if op == '+':
		r = a + b
	elif op == '-':
		r = a - b
	elif op == '*':
		r = a * b
	elif op == '/':
		r = a / b
	else:
		break
	print('%d' % r)


import re
while True:
	s = input()
	if re.match('.+\\s\\?\\s.+', s):
		break
	print(int(eval(s)))


t = input().split()
while t[1] != '?':
	a = int(t[0])
	b = int(t[2])
	if t[1] == '+':
		print(a + b)
	if t[1] == '-':
		print(a - b)
	if t[1] == '*':
		print(a * b)
	if t[1] == '/':
		print(a // b)
	t = input().split()


while True:
	(a, op, b) = input().split()
	if op != '?':
		print(int(eval(a + op + b)))
	else:
		break


while True:
	(a, b, c) = input().split()
	a = int(a)
	c = int(c)
	if b == '+':
		print(a + c)
	elif b == '-':
		print(a - c)
	elif b == '/':
		print(int(a / c))
	elif b == '*':
		print(a * c)
	else:
		break


while True:
	s = input()
	if '?' in s:
		break
	elif '/' in s:
		s = s.replace('/', '//')
	print(eval(s))


order = input()
orders = order.split()
while '?' not in orders:
	if orders[1] == '/':
		print(int(orders[0]) // int(orders[2]))
	else:
		print(eval(order))
	order = input()
	orders = order.split()


while True:
	(a, b, c) = list(input().split())
	a = int(a)
	c = int(c)
	if b == '?':
		break
	if b == '+':
		print(a + c)
	elif b == '-':
		print(a - c)
	elif b == '*':
		print(a * c)
	elif b == '/':
		print(a // c)


while True:
	(a, op, b) = input().split()
	if op == '?':
		break
	a = int(a)
	b = int(b)
	if op == '+':
		print(a + b)
	elif op == '-':
		print(a - b)
	elif op == '*':
		print(a * b)
	elif op == '/':
		print(a // b)


while True:
	(a, op, b) = input().split()
	if op == '?':
		break
	if op == '/':
		op = '//'
	print(eval(a + op + b))


for i in range(20001):
	a = input()
	if '?' in a:
		break
	print(int(eval(a)))


while True:
	exp = input()
	if '?' in exp:
		break
	print('%d' % int(eval(exp)))


while True:
	line = input()
	if line.find('?') != -1:
		break
	line = line.replace('/', '//')
	exec('print(' + line + ')')


while True:
	try:
		print(int(eval(input())))
	except:
		break


while True:
	(a, op, b) = input().split()
	if op == '?':
		break
	(a, b) = (int(a), int(b))
	if op == '+':
		print(a + b)
	elif op == '-':
		print(a - b)
	elif op == '*':
		print(a * b)
	elif op == '/':
		print(a // b)


while True:
	(a, b, c) = map(str, input().split())
	if b == '?':
		break
	a = int(a)
	c = int(c)
	if b == '+':
		print(a + c)
	elif b == '*':
		print(a * c)
	elif b == '/':
		print(int(a / c))
	elif b == '-':
		print(a - c)


while True:
	(a, op, b) = input().split()
	(a, b) = map(int, [a, b])
	if op == '+':
		print(a + b)
	elif op == '-':
		print(a - b)
	elif op == '*':
		print(a * b)
	elif op == '/':
		print(a // b)
	else:
		break


while True:
	(a, op, b) = input().split()
	a = int(a)
	b = int(b)
	if op == '+':
		print(a + b)
	elif op == '-':
		print(a - b)
	elif op == '/':
		print(a // b)
	elif op == '*':
		print(a * b)
	else:
		break


def main():
	res = []
	while True:
		try:
			res.append(int(eval(input())))
		except:
			[print(i) for i in res]
			return
main()


while True:
	(a, b, c) = input().split()
	a = int(a)
	c = int(c)
	if b == '?':
		break
	if b == '+':
		print(a + c)
	if b == '-':
		print(a - c)
	if b == '*':
		print(a * c)
	if b == '/':
		print(a // c)


import math
li = []
while True:
	a = input()
	if '?' in a:
		break
	li.append(a)
for i in li:
	i = eval(i)
	print(math.floor(i))


while True:
	(a, op, b) = input().split()
	(a, b) = map(int, [a, b])
	if op == '+':
		print(a + b)
	elif op == '-':
		print(a - b)
	elif op == '*':
		print(a * b)
	elif op == '/':
		print(a // b)
	elif op == '?':
		break


while True:
	s = input()
	try:
		print(int(eval(s)))
	except SyntaxError:
		break


a = []
while True:
	n = input()
	if n.find('?') > 0:
		break
	a.append(n)
for s in a:
	t = s.split()
	if t[1] == '/':
		print(int(t[0]) // int(t[2]))
	else:
		print(eval(''.join(t)))


while True:
	s = input()
	if '?' in s:
		break
	else:
		print(int(eval(s)))


while True:
	(a, op, b) = input().split()
	if op == '?':
		break
	if op == '/':
		op = '//'
	print(eval(a + op + b))


while True:
	data = input()
	if '?' in data:
		break
	print(eval(data.replace('/', '//')))


a = []
while True:
	x = input()
	if x.find('?') != -1:
		break
	a.append(x)
for i in a:
	print(int(eval(i)))


while True:
	expr = input()
	if '?' in expr:
		break
	if '/' in expr:
		(a, op, b) = expr.split()
		print(int(a) // int(b))
	else:
		print(eval(expr))


while True:
	a = input()
	if '?' in a:
		break
	print(int(eval(a)))


while True:
	s = input()
	if '?' in s:
		break
	print(int(eval(s)))


while True:
	x = input()
	if '?' in x:
		break
	print(int(eval(x.replace('/', '//'))))


while True:
	(a, op, b) = [i for i in input().split()]
	if op == '?':
		break
	print(int(eval(a + op + b)))


while True:
	S = input().split()
	if S[1] == '?':
		break
	print('%d' % eval(S[0] + S[1] + S[2]))


try:
	while 1:
		print(int(eval(input())))
except:
	pass


while True:
	i = input()
	if '?' in i:
		break
	print(int(eval(i)))


while True:
	(a, op, b) = input().split()
	a = int(a)
	b = int(b)
	if op == '+':
		print(a + b)
	elif op == '-':
		print(a - b)
	elif op == '*':
		print(a * b)
	elif op == '/':
		print(a // b)
	elif op == '?':
		exit()


while True:
	a = input()
	if a.find('?') > 0:
		break
	t = a.split()
	if t[1] == '/':
		print(int(t[0]) // int(t[2]))
	else:
		print(eval(''.join(t)))


while True:
	a = input()
	if '?' in a:
		break
	print('{0}'.format(eval(a.replace('/', '//'))))


while True:
	s = input()
	try:
		print(int(eval(s)))
	except:
		break


(a, op, b) = input().split()
while op != '?':
	(a, b) = (int(a), int(b))
	if op == '+':
		print(a + b)
	elif op == '-':
		print(a - b)
	elif op == '*':
		print(a * b)
	else:
		print(a // b)
	(a, op, b) = input().split()


while True:
	(a, op, b) = input().split(' ')
	(a, b) = [int(i) for i in (a, b)]
	if op == '+':
		print(a + b)
	elif op == '-':
		print(a - b)
	elif op == '*':
		print(a * b)
	elif op == '/':
		print(int(a / b))
	else:
		break


while 1:
	(a, o, b) = input().split()
	if o == '?':
		break
	(a, b) = map(int, (a, b))
	print(a + b if o == '+' else a - b if o == '-' else a * b if o == '*' else a // b)


ans = []
while True:
	a = input()
	if '?' in a:
		break
	eval('ans.append(int({0}))'.format(a))
for a in ans:
	print(a)


ans = []
while True:
	string = input()
	if string.count('?') == 1:
		break
	ans.append(string)
for i in ans:
	print(int(eval(i)))


import sys
while True:
	(a, op, b) = map(str, input().split())
	if op == '?':
		sys.exit()
	if op == '/':
		op = '//'
	f = a + op + b
	print(eval(f))


import sys
for s in sys.stdin:
	if '?' in s:
		break
	print(int(eval(s)))


while True:
	inst = input()
	if inst.find('?') > 0:
		break
	print(eval(inst.replace('/', '//')))


while True:
	l = input().split()
	op = l.pop(1)
	(a, b) = map(int, l)
	if op == '?':
		break
	n = a + b if op == '+' else a - b if op == '-' else a * b if op == '*' else a // b
	print(n)


while True:
	(a, op, b) = input().split()
	if op == '?':
		break
	a = int(a)
	b = int(b)
	print(a + b if op == '+' else a - b if op == '-' else a * b if op == '*' else a // b)


a = input()
while not '?' in a:
	print(int(eval(a)))
	a = input()


import math

def main():
	while True:
		(a, op, b) = input().split()
		if op == '?':
			break
		print(math.floor(eval(a + op + b)))
main()


s = input()
while '?' not in s:
	s.replace('/', '//')
	print(int(eval(s)))
	s = input()


while True:
	(a, op, b) = input().split()
	if op == '?':
		break
	else:
		ans = int(eval(a + op + b))
		print(ans)


while True:
	a = input()
	if '?' in a:
		break
	print(int(eval(''.join(a.split()))))


while True:
	(a, b, c) = input().split()
	d = int(a)
	e = int(c)
	if b == '+':
		print(d + e)
	if b == '-':
		print(d - e)
	if b == '*':
		print(d * e)
	if b == '/':
		print(d // e)
	if b == '?':
		break


while True:
	(a, op, b) = input().split()
	if op == '?':
		break
	(a, b) = (int(a), int(b))
	if op == '+':
		print(a + b)
	if op == '-':
		print(a - b)
	if op == '*':
		print(a * b)
	if op == '/':
		print(int(a / b))


while True:
	s = input()
	(a, op, b) = s.split()
	if op == '?':
		break
	print(int(eval(s)))


import math
while True:
	(a, op, b) = input().split()
	if op == '?':
		break
	else:
		print(math.floor(eval('%d%s%d' % (int(a), op, int(b)))))


while True:
	(a, op, b) = input().split()
	(a, b) = map(int, (a, b))
	if op == '+':
		print(a + b)
	elif op == '-':
		print(a - b)
	elif op == '*':
		print(a * b)
	elif op == '/':
		print(a // b)
	elif op == '?':
		break


x = str(input())
while 0 == x.count('?'):
	print(int(eval(x)))
	x = str(input())


while True:
	(a, op, b) = input().split()
	if op == '?':
		break
	a = int(a)
	b = int(b)
	print(int(eval(f'{a} {op} {b}')))


while True:
	(a, op, b) = input().split()
	a = int(a)
	b = int(b)
	if op == '?':
		break
	if op == '+':
		print(a + b)
	if op == '-':
		print(a - b)
	if op == '*':
		print(a * b)
	if op == '/':
		print(a // b)


while True:
	l = input()
	if '?' in l:
		break
	print(eval(l.replace('/', '//')))


while True:
	(a, op, b) = map(str, input().split())
	if op == '?':
		exit()
	elif op == '/':
		print(int(a) // int(b))
	else:
		print(eval(a + op + b))


while True:
	line = input()
	if '?' in line:
		break
	print(eval(line.replace('/', '//')))


import sys, operator
list = {'+': operator.add, '-': operator.sub, '*': operator.mul, '/': operator.truediv}
for line in sys.stdin:
	(a, op, b) = line.split()
	if op == '?':
		break
	print(int(list[op](int(a), int(b))))


import math
while 1:
	(a, op, b) = input().split()
	if op == '?':
		break
	else:
		print(math.floor(eval(a + op + b)))


while True:
	try:
		print(int(eval(input())))
	except SyntaxError:
		break


while True:
	(a, b, c) = input().split()
	if b == '+' or b == '-' or b == '*':
		op = b
	elif b == '/':
		op = '//'
	elif b == '?':
		break
	print(eval(a + op + c))


while True:
	(a, op, b) = input().split()
	if '?' in op:
		break
	asn = eval(f'{a} {op} {b}')
	print(int(asn))


while True:
	(da, op, db) = map(str, input().split())
	if op == '?':
		break
	a = int(da)
	b = int(db)
	if op == '+':
		print(a + b)
	elif op == '-':
		print(a - b)
	elif op == '*':
		print(a * b)
	else:
		print(a // b)


while True:
	(x, op, y) = input().split()
	(x, y) = map(int, (x, y))
	if op == '?':
		break
	print(x + y if op == '+' else x - y if op == '-' else x * y if op == '*' else int(x / y))


while True:
	(a, op, b) = input().split()
	a = int(a)
	b = int(b)
	if op == '?':
		break
	if op == '+':
		ans = a + b
	elif op == '-':
		ans = a - b
	elif op == '*':
		ans = a * b
	else:
		ans = a / b
	print('%d' % ans)


import math
while 1:
	calc = input()
	a = calc.split()[1]
	if a == '?':
		break
	else:
		print(math.floor(eval(calc)))


s = input()
while '?' not in s.split()[1]:
	print(eval(''.join(s.replace('/', '//'))))
	s = input()


while True:
	(a, op, b) = input().split()
	(a, b) = (int(a), int(b))
	if op == '?':
		break
	if op == '+':
		print(a + b)
	if op == '-':
		print(a - b)
	if op == '*':
		print(a * b)
	if op == '/':
		print(a // b)


while 1:
	t = input()
	if '?' in t:
		break
	print(int(eval(t)))


while True:
	(a, op, b) = input().split(' ')
	a = int(a)
	b = int(b)
	if op == '+':
		print(a + b)
	elif op == '-':
		print(a - b)
	elif op == '/':
		print(a // b)
	elif op == '*':
		print(a * b)
	else:
		break


a = []
while True:
	n = input()
	if n.find('?') > 0:
		break
	a.append(n)
for s in a:
	t = s.split()
	if t[1] == '/':
		print(int(t[0]) // int(t[2]))
	else:
		b = eval(''.join(t))
		print(b)


import sys, math

def solve():
	while True:
		s = input()
		if '?' in s:
			break
		else:
			print(int(eval(s) // 1))
solve()


while 1:
	(a, op, b) = input().split()
	if op == '?':
		break
	a = int(a)
	b = int(b)
	if op == '+':
		print(a + b)
	elif op == '-':
		print(a - b)
	elif op == '*':
		print(a * b)
	elif op == '/':
		print(a // b)


import sys
for i in sys.stdin:
	(a, op, b) = i.replace('/', '//').split()
	if op == '?':
		break
	else:
		print(eval(a + op + b))


while True:
	(a, op, b) = input().split()
	if op == '?':
		break
	calc = a + op + b
	if op == '/':
		print(int(a) // int(b))
	else:
		print(eval(calc))


while True:
	s = input().split()
	if s[1] == '?':
		exit()
	print(int(eval(''.join(s))))


while True:
	(x, op, y) = input().split()
	x = int(x)
	y = int(y)
	if op == '?':
		break
	elif op == '+':
		print(x + y)
	elif op == '-':
		print(x - y)
	elif op == '*':
		print(x * y)
	else:
		print(x // y)


while True:
	(a, op, b) = input().split()
	if op == '?':
		break
	a = int(a)
	b = int(b)
	if op == '+':
		print(a + b)
	elif op == '-':
		print(a - b)
	elif op == '*':
		print(a * b)
	elif op == '/':
		print(a // b)


import sys
s = sys.stdin.readlines()
for i in s:
	if '?' in i:
		break
	print(eval(i.replace('/', '//')))


while True:
	s = input()
	if '?' in s:
		break
	else:
		print(int(eval(s)))


data = []
while True:
	l = input()
	data.append(l)
	if '?' in l:
		data.pop()
		break
for i in data:
	print(int(eval(i)))


while True:
	(a, op, b) = input().split(' ')
	(a, b) = [int(i) for i in (a, b)]
	if op == '?':
		break
	print(a + b if op == '+' else a - b if op == '-' else a * b if op == '*' else int(a / b) if op == '/' else '')


while 1:
	s = input()
	if s.split()[1] == '?':
		exit()
	print(int(eval(s)))


while True:
	a = input()
	if '?' in a:
		break
	print(eval(a.replace('/', '//')))


while True:
	(a, op, b) = input().split()
	a = int(a)
	b = int(b)
	if op == '?':
		break
	elif op == '+':
		print(int(a + b))
	elif op == '-':
		print(int(a - b))
	elif op == '*':
		print(int(a * b))
	else:
		print(int(a / b))


while True:
	s = input()
	if '?' in s:
		break
	print(int(eval(s)))


while True:
	a = input()
	try:
		i = a.index('?')
	except:
		print(int(eval(a)))
	else:
		break


while True:
	try:
		buf = input()
		print(int(eval(buf)))
	except:
		(a, op, b) = buf.split(' ')
		if op == '?':
			exit()


ans = []
while True:
	line = list(input().split())
	if '?' in line:
		break
	if '/' == line[1]:
		line[1] = '//'
	ans.append(line)
for l in ans:
	print(eval(''.join(l)))


while True:
	(a, op, b) = input().split()
	if op == '?':
		break
	op = op.replace('/', '//')
	print(eval(a + op + b))


while True:
	(a, op, b) = map(str, input().split())
	if op == '/':
		op = '//'
	elif op == '?':
		break
	print(eval(a + op + b))


while True:
	n = input()
	if '?' in n:
		break
	print(int(eval(n)))


while True:
	abc = input()
	if '?' in abc:
		break
	print(eval(abc.replace('/', '//')))


import math
S = open(0).read().split()
for (a, op, b) in zip(*[iter(S)] * 3):
	if op == '?':
		break
	print(int(math.floor(eval(a + op + b))))


for i in range(10000):
	try:
		a = eval(input())
		print(int(a))
	except:
		break


while True:
	f = input()
	s = f.split()
	if s[1] == '?':
		break
	if s[1] == '/':
		print(int(s[0]) // int(s[2]))
	else:
		print(eval(f))


import sys
for x in sys.stdin:
	if '?' in x:
		break
	print(eval(x.replace('/', '//')))


while True:
	a = input()
	if '?' in a:
		break
	print(int(eval(a)))


while True:
	(a, op, b) = [x for x in input().split()]
	if op == '?':
		break
	if op == '/':
		op = '//'
	print(eval('{} {} {}'.format(a, op, b)))


while True:
	expr = input()
	if '?' in expr:
		break
	else:
		print(int(eval(expr)))


while True:
	x = input()
	if '?' in x:
		break
	print(int(eval(x)))


(a, op, b) = input().split()
while op != '?':
	(a, b) = (int(a), int(b))
	if op == '+':
		a += b
	if op == '-':
		a -= b
	if op == '*':
		a *= b
	if op == '/':
		a = int(a / b)
	print(a)
	(a, op, b) = input().split()


while 1:
	(a, s, b) = input().split()
	a = int(a)
	b = int(b)
	if s == '?':
		break
	if s == '+':
		print(a + b)
	elif s == '-':
		print(a - b)
	elif s == '*':
		print(a * b)
	else:
		print(a // b)


while True:
	a = input()
	if a.find('?') > 0:
		break
	print(int(eval(''.join(a.split()))))


while True:
	(a, op, b) = input().split()
	if op == '?':
		break
	print(int(eval(a + op + b)))


while True:
	(a, op, b) = input().split()
	if op == '?':
		break
	elif op == '/':
		print(eval(a + '//' + b))
	else:
		print(eval(a + op + b))


while True:
	calc = input()
	if '?' in calc:
		break
	print(eval(calc.replace('/', '//')))


while 1:
	a = input()
	if a.split()[1] == '?':
		break
	eval('print(int(' + a + '))')


while 1:
	(a, op, b) = input().split()
	if op == '?':
		break
	elif op == '/':
		op = '//'
	print(eval(a + op + b))


while 1:
	data = input()
	if '?' in data:
		break
	print(eval(data.replace('/', '//')))


while True:
	data = input()
	if '?' in data:
		break
	print(eval(data.replace('/', '//')))


while 1:
	a = input()
	if '?' in a:
		break
	else:
		print(int(eval(a)))


for i in range(10000):
	s = input()
	if '?' in s:
		break
	print(int(eval(s)))


import math
(a, op, b) = map(str, input().split())
while op != '?':
	print(math.floor(eval(a + op + b)))
	(a, op, b) = map(str, input().split())


while 1:
	s = input()
	if '?' in s:
		break
	print(int(eval(s)))


while True:
	(a, op, b) = input().split()
	if op == '?':
		break
	print(int(eval(a + op + b)))


while True:
	l = input().split()
	if l[1] == '?':
		break
	print(int(eval(l[0] + l[1] + l[2])))


while True:
	(a, op, b) = map(str, input().split())
	if op == '?':
		break
	if op == '/':
		op = '//'
	formula = a + op + b
	print(eval(formula))


while True:
	a = input()
	if '?' in a:
		break
	print('%d' % eval(a))


while 1:
	s = input()
	if '?' in s:
		break
	else:
		print(int(eval(s)))


while 1:
	s = input()
	if '?' in s:
		break
	print(int(eval(s)))


while True:
	exp = input()
	if '?' in exp:
		break
	print(int(eval(exp)))


while True:
	(a, op, b) = input().split()
	if op == '?':
		break
	print(int(eval(a + op + b)))


for i in range(100):
	a = input()
	if '?' in a:
		break
	print(int(eval(a)))


while 1:
	(a, op, b) = input().split()
	if op == '?':
		break
	else:
		a = int(a)
		b = int(b)
		print(a + b if op == '+' else a - b if op == '-' else a * b if op == '*' else int(a / b))


import sys
l = sys.stdin.readlines()
for i in l:
	if '?' in i:
		break
	else:
		str = i.replace('/', '//')
		print(eval(str))


while True:
	q = input()
	if '?' in q:
		break
	print(int(eval(q)))


while 1:
	data = input()
	if '?' in data:
		break
	print(eval(data.replace('/', '//')))


ans = []
while 1:
	(a, b, c) = input().split()
	if b == '?':
		break
	ans.append(eval(a + b + c))
for i in ans:
	print(int(i))


while True:
	(a, op, b) = map(str, input().split())
	a = int(a)
	b = int(b)
	if op == '+':
		print(a + b)
	if op == '-':
		print(a - b)
	if op == '*':
		print(a * b)
	if op == '/':
		print(int(a / b))
	if op == '?':
		break


while 1:
	(a, o, b) = input().split()
	if o == '?':
		break
	else:
		a = int(a)
		b = int(b)
		print(a + b if o == '+' else a - b if o == '-' else a * b if o == '*' else a // b)


while True:
	(a, op, b) = map(str, input().split())
	if op == '?':
		break
	print(int(eval(a + op + b)))


while True:
	(a, op, b) = input().split()
	a = int(a)
	b = int(b)
	if op == '+':
		print(a + b)
	elif op == '-':
		print(a - b)
	elif op == '*':
		print(a * b)
	elif op == '/':
		print(a // b)
	else:
		break


while True:
	data = input()
	if '?' in data:
		break
	print(eval(data.replace('/', '//')))


while True:
	line = input()
	(a, op, b) = line.split(' ')
	if op == '?':
		break
	print(int(eval(line)))


while True:
	f = input()
	(_, op, _) = f.split()
	if op == '?':
		break
	print(int(eval(f)))


while True:
	a = input()
	b = a.replace('/', '//')
	if '?' in b:
		break
	else:
		print(eval(b))


list = []
while True:
	(a, op, b) = input().split()
	if op == '?':
		break
	else:
		list.append(eval(a + op + b))
for ans in list:
	print(int(ans))


while True:
	a = input()
	if '?' in a:
		break
	else:
		print('%d' % eval(a))


while True:
	(a, op, b) = input().split()
	if op == '?':
		break
	eval('print( int(int(a) {0} int(b)) )'.format(op))


while True:
	(a, b, c) = input().split()
	if b == '?':
		break
	else:
		print(round(eval(a + b + c) - 0.4))


while True:
	ins = input().split()
	a = int(ins[0])
	b = int(ins[2])
	op = ins[1]
	if op == '+':
		print(a + b)
	elif op == '-':
		print(a - b)
	elif op == '*':
		print(a * b)
	elif op == '/':
		print(a // b)
	else:
		break


while True:
	(a, op, b) = map(str, input().split())
	if not op == '?':
		print(int(eval(a + op + b)))
	else:
		break


import sys
for line in sys.stdin:
	if line.find('?') != -1:
		break
	print(int(eval(line)))


while 1:
	(a, op, b) = input().split()
	a = int(a)
	b = int(b)
	if op == '+':
		print(a + b)
	elif op == '-':
		print(a - b)
	elif op == '*':
		print(a * b)
	elif op == '/':
		print(int(a / b))
	else:
		break


ans = []
for s in open(0).readlines():
	if '?' in s:
		break
	ans.append(eval(s.strip().replace('/', '//')))
print(*ans, sep='\n')


import math
while True:
	x = input()
	(a, op, b) = x.split()
	if op == '?':
		break
	else:
		result = eval(x)
		result = math.floor(result)
		print(f'{result:.0f}')


while 1:
	a = input()
	if '?' in a:
		break
	print(int(eval(a)))


str = input()
while not str.split()[1] == '?':
	print(int(eval(str)))
	str = input()


while True:
	(a, op, b) = input().split()
	a = int(a)
	b = int(b)
	if op == '+':
		print(a + b)
	elif op == '-':
		print(a - b)
	elif op == '*':
		print(a * b)
	elif op == '/':
		print(a // b)
	elif op == '?':
		break


import sys
for x in sys.stdin:
	if '?' in x:
		break
	print(eval(x.replace('/', '//')))


while True:
	(a, op, b) = input().split()
	if op == '?':
		break
	eval('print(int(int(a) {} int(b)))'.format(op))


ops = {'+': lambda a, b: a + b, '-': lambda a, b: a - b, '*': lambda a, b: a * b, '/': lambda a, b: int(a / b)}
while True:
	(a, op, b) = input().split()
	if op not in ops.keys():
		break
	print(ops[op](int(a), int(b)))