Problem:
Simple Calculator 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. 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. Constraints  0 ≤ a , b ≤ 20000  No divisions by zero are given.  Sample Input 1 1 + 2
56 - 18
13 * 2
100 / 10
27 + 81
0 ? 0 Sample Output 1 3
38
26
10
108

Solution (Python):
while True:

    a,op,b = input().split()
    a = int(a)
    b = int(b)

    if op == "?":
        break
    elif op == "+":
        print(a+b)
    elif op == "-":
        print(a-b)
    elif op ==  "*":
        print(a*b)
    elif op == "/":
        print(int(a/b))

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

Solution (Python):
d = {
    "+": lambda a,b: a+b,
    "-": lambda a,b: a-b,
    "*": lambda a,b: a*b,
    "/": lambda a,b: a//b
}

while True:
    lst = input().split()

    if lst[1] == "?":
        break
    else:
        print(d[lst[1]](int(lst[0]), int(lst[2])))

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

Solution (Python):
answers=[]
while True:
    iquation=[]
    iquation=input().split()
    iquation[0]=int(iquation[0])
    iquation[2]=int(iquation[2])
    if iquation[1]=='+':
        answers.append(iquation[0]+iquation[2])
    elif iquation[1]=='-':
        answers.append(iquation[0]-iquation[2])
    elif iquation[1]=='*':
        answers.append(iquation[0]*iquation[2])
    elif iquation[1]=='/':
        answers.append(int(iquation[0]/iquation[2]))
    elif iquation[1]=='?':
        break
    else:
        print('error')
for i in range(0,len(answers)):
    print(answers[i])

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

Solution (Python):
while True:
    data = list(input().split(" "))
    a = int(data[0])
    b = int(data[2])
    if data[1] == "?":
        break
    elif data[1] == "+":
        print(a+b)
    elif data[1] == "-":
        print(a-b)
    elif data[1] == "*":
        print(a*b)
    else:
        print(a//b)

Solution (Python):

my_value_list = []

while True:
    try:
        my_value_list.append(input().split())
    except EOFError:
        break

for i in range(0, len(my_value_list)):
    if my_value_list[i][1] == "+":
        print(int(my_value_list[i][0]) + int(my_value_list[i][2]))
    elif my_value_list[i][1] == "-":
        print(int(my_value_list[i][0]) - int(my_value_list[i][2]))
    elif my_value_list[i][1] == "/":
        print(int(my_value_list[i][0]) // int(my_value_list[i][2]))
    elif my_value_list[i][1] == "*":
        print(int(my_value_list[i][0]) * int(my_value_list[i][2]))
    else:
        break

Solution (Python):
import sys
for line in sys.stdin:
    a, op, b = line.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)
    else:
        print(a // b)

Solution (Python):
x, op, y = input().split()
x = int(x)
y = int(y)
while op != "?" :
 if op == "+" :
  print(x + y)
 elif op == "-":
  print(x - y)
 elif op == "*":
  print(x * y)
 elif op == "/":
  print(x // y)
 x, op, y = input().split()
 x = int(x)
 y = int(y)

Solution (Python):
while 1:
    a, operator, b = input().split()
    if operator == "+":
        print(int(a) + int(b))
    elif operator == "-":
        print(int(a) - int(b))
    elif operator == "*":
        print(int(a) * int(b))
    elif operator == "/":
        print(int(a) // int(b))
    elif operator == "?":
        break
    else:
        print("'" + operator + "'" + " is not a operator.")

Solution (Python):

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

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

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

Solution (Python):
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)

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

Solution (Python):
while True:

    l = [str(i) for i in input().split()]

    a = int(l[0])
    b = int(l[2])
    op = l[1]

    if op == "+":
        print(a+b)
        
    elif op == "-":
        print(a-b)
        
    elif op == "*":
        print(a*b)
        
    elif op == "/":
        print(a//b)
     
    elif op == "?":
        break

Solution (Python):
while True:
    line = input().split()
    if line[1] == '+':
        print(int(line[0]) + int(line[2]))
    if line[1] == '-':
        print(int(line[0]) - int(line[2]))
    if line[1] == '*':
            print(int(line[0]) * int(line[2]))
    if line[1] == '/':
        print(int(line[0]) // int(line[2]))
    if line[1] == '?':
        break

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

Solution (Python):
while True:
    x = raw_input().split()

    a = int(x[0])
    b = int(x[2])
    op = x[1]

    if op == '?':
        break
    elif op == '+':
        print(a+b)
    elif op == '-':
        print(a-b)
    elif op == '*':
        print(a*b)
    elif op == '/':
        print(a/b)

Solution (Python):
import sys

inputs = sys.stdin
for line in inputs:
    a, op, b = line.strip().split()
    if op == "?":
        break
    elif 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)

Solution (Python):
result = []

while True:
    indata = input().split()
    a = int(indata[0])
    b = int(indata[2])
    op = indata[1]

    if op == "+":
        result.append(a + b)
    elif op == "-":
        result.append(a - b)
    elif op == "*":
        result.append(a * b)
    elif op == "/":
        result.append(a // b)
    elif op == "?":
        break
    else:
        pass

for i in range(len(result)):
    print("{0:.0f}".format(result[i]))

Solution (Python):
import sys
import math
while True:
    x = sys.stdin.readline().strip()
    a = list(x.split())
    if a[1] == "?":
        break
    else:
        x = int(a[0])
        y = int(a[2])
        if a[1] == "+":
            print(x + y)
        elif a[1] == "-":
            print(x - y)
        elif a[1] == "*":
            print(x * y)
        elif a[1] == "/":
            print(math.floor(x / y))

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

Solution (Python):
x = []

while True:
    x = input().split()
    if x[1] == "?":
        break 
    elif x[1] == "+":
        print(int(x[0]) + int(x[2]))
    elif x[1] == "-":
        print(int(x[0]) - int(x[2]))
    elif x[1] == "*":
        print(int(x[0]) * int(x[2]))
    elif x[1] == "/":
        print(int(x[0]) // int(x[2]))

Solution (Python):
import sys

output = []

def main():
    lines = sys.stdin.readlines()

    for line in lines:
        
        line = line.strip('\n')
        elems = line.split(" ")
        output_num = 0
        if elems[1] == '+':
            output_num = int(elems[0]) + int(elems[2])
        elif elems[1] == '-':
            output_num = int(elems[0]) - int(elems[2])
        elif elems[1] == '*':
            output_num = int(elems[0]) * int(elems[2])
        elif elems[1] == '/':
            output_num = int(elems[0]) / int(elems[2])
        elif elems[1] == '?':
            sys.exit()
        print(output_num)

if __name__ == "__main__":
    main()

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

Solution (Python):
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)

Solution (Python):
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

Solution (Python):
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 (a*c)
    elif (b == "/"):
        print (a//c)
    elif (b == "?"):
        break

Solution (Python):
import sys
def main():
    for line in sys.stdin:
        F = line.split() 
        if F[1] == "?":
            break
        else:
            a = int(F[0])
            b = int(F[2])
            op = F[1]
            ans = 0
            if op == "+":
                ans = a + b
            elif op == "-":
                ans = a - b
            elif op == "/":
                ans = a // b
            elif op == "*":
                ans = a * b
            print(ans)
            

if __name__ == "__main__":
    main()

Solution (Python):
while True:
	data = raw_input().split(" ")
	a = int(data[0])
	op = data[1]
	b = int(data[2])

	if op == "?":
		break
	elif op == "+":
		ans = a + b
	elif op == "-":
		ans = a - b
	elif op == "*":
		ans = a * b
	else:
		ans = a / b

	print ans

Solution (Python):

flag =0
while flag==0:
    a,b,c=[ i for i in input().split()]
    if b=="?":
        flag=1
        break
    elif b=="+":
        n=int(a)+int(c)
    elif b=="-":
        n=int(a)-int(c)
    elif b=="*":
        n=int(a)*int(c)
    elif b=="/":
        n=int(a)/int(c)
    print(int(n))

Solution (Python):
flag =0
while flag==0:
    a,b,c=[ i for i in input().split()]
    if b=="?":
        flag=1
        break
    elif b=="+":
        n=int(a)+int(c)
    elif b=="-":
        n=int(a)-int(c)
    elif b=="*":
        n=int(a)*int(c)
    elif b=="/":
        n=int(a)/int(c)
    print(int(n))

Solution (Python):
while True:
    a, op, b = input().split()
    a,b = int(a), int(b)
    op_dict = {'+': (lambda x,y: x + y),
               '-': (lambda x,y: x - y),
               '*': (lambda x,y: x * y),
               '/': (lambda x,y: x // y),
               '?': '?'}
    func = op_dict[op]
    if func == '?': break 
    print('%d' % int(func(a, b)))

Solution (Python):
while True:
    line = input()

    if line == '?':
        break

    a, op, b = line.split()
    a = int(a)
    b = int(b)

    if op == '?':
        break
    elif op == '+':
        ans = a + b
    elif op == '-':
        ans = a - b
    elif op == '*':
        ans = a * b
    elif op == '/':
        ans = int(a / b)
    else:
        break

    print(ans)

Solution (Python):

"""
http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_4_C&lang=jp

"""
import sys
from sys import stdin
input = stdin.readline


def main(args):
    while True:
        ans = 0
        a, op, b = input().split()
        a = int(a)
        b = int(b)
        if op == '?':
            break
        elif op == '+':
            ans = a + b
        elif op == '-':
            ans = a - b
        elif op == '*':
            ans = a * b
        elif op == '/':
            ans = a // b

        print(ans)


if __name__ == '__main__':
    main(sys.argv[1:])

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

Solution (Python):
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

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

Solution (Python):



import math

def main():
    while True:
        a, b, c = input().split()

        if (b == '?'):
            break
        else:
            if (b == '+'):
                print('%d' % (int(a)+int(c)))
            elif (b == '-'):
                print('%d' % (int(a)-int(c)))
            elif (b == '*'):
                print('%d' % (int(a)*int(c)))
            elif (b == '/'):
                print('%d' % (int(a)/int(c)))

if __name__ == '__main__':
    main()

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

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

Solution (Python):
def calc(s):
    t=s.split()
    a=int(t[0])
    b=int(t[2])
    op=t[1]
    if op=="+":
        return ("{0}".format(a+b))
    if op == "-":
        return ("{0}".format(a - b))
    if op == "*":
        return ("{0}".format(a * b))
    if op == "/":
        return ("{0}".format(a // b))
w="yj s npi"
a=[]
while(w.split()[1]!="?"):
    w=input()
    a.append(w)
a.pop()
for st in a:
    print("{0}".format(calc(st)))

Solution (Python):
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)

Solution (Python):
def main():
    while True:
        a, op, b = input().split()
        
        if op == "?":
            break
        elif op == "/":
            op = "//"
        print(eval(a + op + b))

if __name__ == "__main__":
    main()

Solution (Python):
while True:
    l = input()
    if ("?" in l):
        break

    print(eval(l.replace("/","//")))

Solution (Python):
while True:
    l = input().split()
    if (l[1] == "?"):
        break
    elif(l[1] == "+"):
        print(int(l[0]) + int(l[2]))
    elif(l[1] == "-"):
        print(int(l[0]) - int(l[2]))
    elif(l[1] == "*"):
        print(int(l[0]) * int(l[2]))
    elif(l[1] == "/"):
        print(int(l[0]) // int(l[2]))

Solution (Python):
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)

Solution (Python):
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)))

Solution (Python):
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)

Solution (Python):
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)))

Solution (Python):
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)))

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

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

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

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

Solution (Python):
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)

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

Solution (Python):
import math

class Calc:
    def __init__(self,a,op,b):
        self.a = a
        self.b = b
        self.op = op

    def calc(self):
        if self.op == "+":
            return self.a + self.b
        elif self.op == "-":
            return self.a - self.b
        elif self.op == "*":
            return self.a * self.b
        elif self.op == "/":
            try:
                ans = self.a / self.b
            except ZeroDivisionError:
                return 0
            else:
                return ans
        else:
            return "Invalid Operator."

def main():
    data = []
    while 1:
        n = input().split()
        a = int(n[0])
        op = n[1]
        b = int(n[2])
        if op == "?":
            break

        data.append(Calc(a,op,b))

    for i in data:
        print(int(i.calc()))

if __name__ == "__main__":
    main()

Solution (Python):
x,b,z = input().split()
a=int(x)
c=int(z)
while b!="?":
    if b=="+":
        print(a+c)
    elif b=="-":
        print(int(a)-int(c))
    elif b=="*":
        print(a*c)
    elif b=="/":
        print(int(a/c))
    x,b,z = input().split()
    a=int(x)
    c=int(z)

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

Solution (Python):
while True:
    l = input().split()
    a = int(l[0])
    op = l[1]
    b = int(l[2])
    if op == "?":
        break
    elif op == "+":
        print(a + b)
    elif op == "-":
        print(a - b)
    elif op == "*":
        print(a * b)
    elif op == "/":
        print(int(a / b))

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

Solution (Python):
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

Solution (Python):

while True:
    line = raw_input().split()
    a = int(line[0])
    op = line[1]
    b = int(line[2])
    answer = 0
    if op == '+':
        answer = a + b
    elif op == '-':
        answer = a - b
    elif op == '*':
        answer = a * b
    elif op == '/':
        answer = a / b
    elif op == '?':
        break
    print "%d" % answer

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

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

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

Solution (Python):
while True:
    c,op,d=map(str,input().split())
    a=int(c)
    b=int(d)
    if op =="?":
        break
    elif op=="+":
        ans=a+b
    elif op=="-":
        ans=a-b
    elif op=="*":
        ans=a*b
    elif op=="/":
        ans=int(a/b)
    print(ans)

Solution (Python):
while True:
    instr = input()
    instrSp = instr.split()
    x = int(instrSp[0])
    op = str(instrSp[1])
    y = int(instrSp[2])

    res = 0
    if op == '+':
        res = x + y
    elif op == '-':
        res = x - y
    elif op == '*':
        res = x * y
    elif op == '/':
        res = x // y
    else:
        break
    print(res)

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

Solution (Python):
while True:
	try:
		line = input()
		if  '?' in line:
			break	
		else:
			a,op,b = line.split(' ')
			if op == '+':
				print(int(a)+int(b))
			if op == '-':
				print(int(a)-int(b))
			if op == '*':
				print(int(a)*int(b))
			if op == '/':
				print(int(float(a)/float(b)))
	except EOFError:
		break

Solution (Python):
while True:
    a,op,b = [x for x in input().split( )]
    a,b = [int(y) for y in [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

Solution (Python):
while(1):
    x = raw_input()
    x = x.split(" ")
    a = int(x[0])
    op = str(x[1])
    b = int(x[2])
    if(op == "?"):
        break
    elif(op == "+"):
        print a+b
    elif(op == "-"):
        print a-b
    elif(op == "*"):
        print a*b
    elif(op == "/"):
        print a/b

Solution (Python):
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

Solution (Python):
while True:
    x=input().split()
    a=int(x[0])
    op=x[1]
    b=int(x[2])

    if op=='?':break
    elif op=='+': print((a) + (b))
    elif op=='-': print((a) - (b))
    elif op=='*': print((a) *  (b))
    elif op=='/': print((a) // (b))

Solution (Python):


while True:
    SC = input()
    SClist = SC.split()
    a = int(SClist[0])
    b = int(SClist[2])

    if SClist[1] == '+':
        print(a+b)
    elif SClist[1] == '-':
        print(a-b)
    elif SClist[1] == '*':
        print(a*b)
    elif SClist[1] == '/':
        print(a//b)
    elif SClist[1] == '?':
        break

Solution (Python):
def scalc():
    while (True):
        a, op, b = input().split(" ")
        a = int(a)
        b = int(b)
        if op == '?':
            break
        elif op == '+':
            print(a+b)
        elif op == '-':
            print(a-b)
        elif op == '*':
            print(a*b)
        elif op == '/':
            print(int(a/b))
        else :
            break
    return 0

if __name__ == "__main__":
    ret = scalc()

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

Solution (Python):


while True:
    a,op,b=map(str,input().split())
    if op=="?":
        break
    
    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)))

Solution (Python):
from sys import stdin
for line in stdin:
	tmp = line.strip('\n').split(' ')
	a, b = int(tmp[0]), int(tmp[-1])
	if tmp[1] == '+':
		print(a + b)
	elif tmp[1] == '-':
		print(a - b)
	elif tmp[1] == '*':
		print(a * b)
	elif tmp[1] == '/':
		print(a // b)
	else:
		break

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

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

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

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

Solution (Python):
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))

Solution (Python):


while True:
    a, op, b =  (i for i in 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

Solution (Python):

for i in range(10000):
    a,op,b=input().split()
    if op=="?":
        break
    if op=="+":
        print(int(a)+int(b))
    if op=="-":
        print(int(a)-int(b))
    if op=="*":
        print(int(a)*int(b))
    if op=="/":
        print(int(int(a)/int(b)))

Solution (Python):



import sys

while True:
    a, op, b = sys.stdin.readline().split()
    ai = int(a)
    bi = int(b)
    if op == '?':
        break
    elif op == '+':
        print(ai + bi)
    elif op == '-':
        print(ai - bi)
    elif op == '*':
        print(ai * bi)
    elif op == '/':
        print(ai // bi)
    else:
        raise ValueError

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

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

Solution (Python):
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()

Solution (Python):
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

Solution (Python):
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

Solution (Python):
while True:
    a, op, b = input().rstrip().split()
    if op == "?":
        break
    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))

Solution (Python):
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

Solution (Python):


if __name__ == '__main__':
    while True:
        a, op, b = raw_input().split()
        if op == '?':
            break

        a, b = map(int, [a, b])
        print a+b if op=='+' else a-b if op=='-' else a*b if op=='*' else a/b

Solution (Python):
import math
x=[]
i=0
while 1:
    l=input().split()
    a=int(l[0])
    b=int(l[2])
    op=str(l[1])

    if op=="?":
        break
    elif op=="/":
        if b==0:
            pass
        else:
            x.append(math.floor(eval(str(a)+op+str(b))))
            i=i+1
    else:
        x.append(eval(str(a)+op+str(b)))
        i=i+1

m=0
while m<i:
    print(x[m])
    m=m+1

Solution (Python):
ans = ''
while True:
    a, op, b = map(str, input().split(' '))
    if op == '?':
        break
    else:
        a = int(a)
        b = int(b)
        if op == '+':
            ans += str(int(a + b)) + '\n'
        elif op == '-':
            ans += str(int(a - b)) + '\n'
        elif op == '*':
            ans += str(int(a * b)) + '\n'
        else:
            ans += str(int(a // b)) + '\n'
if ans != '':
    print(ans[:-1])

Solution (Python):
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

Solution (Python):


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

Solution (Python):
a, e, b= map(str,input().split())
a = int(a)
b = int(b)
while e !="?":
  if e=="+":
    print(str(a + b))
  if e=="-":
    print(str(a - b))
  if e=="*":
    print(str(a * b))
  if e=="/":
    print(str(a // b))
  a , e, b = map(str,input().split())
  a= int(a)
  b= int(b)

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

Solution (Python):
r = []

while True:
    n = input().split()
    a = n[0]
    op = n[1]
    b = n[2]
    a = int(a)
    b = int(b)
    op = str(op)
    if op == "+":
        a1 = a + b
        r.append(a1)
    elif op == "-":
        a2 = a - b
        r.append(a2)
    elif op == "*":
        a3 = a * b
        r.append(a3)
    elif op == "/":
        a4 = a // b
        r.append(a4)
    elif op == "?":
        break

for item in r:
    print(item)

Solution (Python):
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)
  elif op == "?":
    break

Solution (Python):
while 1:
  s = input()
  if "?" in s: break
  print(int(eval(s)))

Solution (Python):
flag = 1
while flag == 1:
	nums = list(input().split(" "))
	a = int(nums[0])
	op = nums[1]
	b = int(nums[2])

	if op != "?":
		if op == "+":
			print(a+b)
		elif op == "-":
			print(a-b)
		elif op == "*":
			print(a*b)
		elif op == "/":
			print(int(a/b))
	elif op == "?":
		flag = 0

Solution (Python):
while True:
    s=input()
    if "?" in s:
        break
    print(int(eval(s)))

Solution (Python):
import math
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(math.floor(a/b))
    elif op == '?':
        break

Solution (Python):
ans = []
while True:
    a,op,b = raw_input().split()
    if op == "+":
        ans.append(int(a)+int(b))
    elif op == "-":
        ans.append(int(a)-int(b))
    elif op == "*":
        ans.append(int(a)*int(b))
    elif op == "/":
        ans.append(int(a)/int(b))
    else:
        break
for char in ans:
    print char

Solution (Python):
i = 0
while i < 10000:
    c, o, d = map(str, input().split())
    a = int(c)
    b = int(d)
    if o == '+':
        print(a+b)
    elif o == '-':
        print(a-b)
    elif o == '*':
        print(a*b)
    elif o == '/':
        print(int(a/b))
    elif o == '?':
        break