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



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


Sample output:
3
38
26
10
108

Submission status: Accepted

Solution code:


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

Submission status: Accepted

Solution code:
def calc():
    answers = []
    while True:
        a, op, b = input().split()
        a = int(a)
        b = int(b)
        if op == "?":
            break
        if op == "+":
            wa = a + b
            answers.append(wa)
        elif op == "-":
            sa = a - b
            answers.append(sa)
        elif op == "*":
            seki = a * b
            answers.append(seki)
        elif op == "/":
            shou = int(a / b)
            answers.append(shou)
    for ans in answers:
        print(ans)


calc()

Submission status: Accepted

Solution code:
while True:
    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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
list_a=[]
list_op=[]
list_b=[]
while True:
    a,op,b=str(input()).split()
    if op!="?":
        a=int(a)
        list_a.append(a)
        list_op.append(op)
        b=int(b)
        list_b.append(b)
    else:
        break
for i in range(len(list_op)):
    A=list_a[i]
    OP=list_op[i]
    B=list_b[i]
    if OP=="+":
        x=math.floor(A+B)
    elif OP=="-":
        x=math.floor(A-B)
    elif OP=="*":
        x=math.floor(A*B)
    else:
        x=math.floor(A/B)
    print(x)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

Solution code:
a,b,op = [],[],[]
while True:
	inp = input().split()
	if inp[1] == "?":
		break
	else:
		a.append(int(inp[0]))
		b.append(int(inp[2]))
		op.append(inp[1])
for i in range(len(a)):
	if op[i] == "+":
		print(a[i]+b[i])
	elif op[i] == "-":
		print(a[i]-b[i])
	elif op[i] == "*":
		print(a[i]*b[i])
	elif op[i] == "/":
		print(a[i]//b[i])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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(int(a/b))

Submission status: Accepted

Solution code:
while True:
    a, op, b = input().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))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
while(True):
    val = input().split(" ")
    a = int(val[0])
    op = val[1]
    b = int(val[2])

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

Submission status: Accepted

Solution code:
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
    elif op =="/":
        ans = a // b
    
    print(ans)

Submission status: Accepted

Solution code:
s=[]
while True:
    tmp=list(map(str,input().split()))
    if tmp[1]=="?":
        break
    else:
        s.append(tmp)

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

Submission status: Accepted

Solution code:
#(36)簡単な計算
while True:
    a,op,b=input().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))

Submission status: Accepted

Solution code:
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(int(a / b))
    elif op == "*" :
        print(a * b)

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
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(int(a/b))
    else:
        break

Submission status: Accepted

Solution code:
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

Submission status: Accepted

Solution code:
while True:
    x = input().split()

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

    if op == '?':
        break

    if op == '+':
        print("%d"%(a+b))
    elif op == '-':
        print("%d"%(a-b))
    elif op == '/':
        print("%d"%(a/b))
    else:
        print("%d"%(a*b))

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

    if op == "?":
        break

    if op == "+":
      print(a + b)
    elif op == "-":
      print(a - b)
    elif op == "*":
      print(a * b)
    elif op == "/":
      print(math.floor(a / b))

Submission status: Accepted

Solution code:
while True:
    a, op, b = input().split()   
    a =int(a)                   
    b = int(b)                  

    if op=="?": # opが"?"の時は終了
        break
    else:    #opが"?"以外の時
        if op=="+":
            print(a+b)
        elif op=="-":
            print(a-b)
        elif op=="*":
            print(a*b)
        elif op=="/":
            print(a//b)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

op = ""
while True:
    s = input().split()

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

    ans = ""
    if op == "?":
        break
    elif op == "+":
        ans = a + b
    elif op == "-":
        ans = a - b
    elif op == "*":
        ans = a * b
    elif op == "/":
        ans = math.floor(a / b)

    print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
while True:
    a, op, b = list(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)
    elif op == '?':
        break

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
while True:
  a,op,b=input().split()
  a=int(a)
  b=int(b)

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

Submission status: Accepted

Solution code:
for i in range(20000):
    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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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))
    else:
        break

Submission status: Accepted

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

Submission status: Accepted

Solution code:
while True:
    a,op,b = input().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))

Submission status: Accepted

Solution code:
while True:
    a,op,b = input().split()
    
    if op =="?":
        break
    
    a = int(a)
    b=  int(b)

    if op == "+":
        print("%d"%(a+b))
    elif op == "-":
        print("%d"%(a-b))
    elif op == "*":
        print("%d"%(a*b))
    elif op == "/":
        print("%d"%(a/b))

Submission status: Accepted

Solution code:
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

Submission status: Accepted

Solution code:
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(int(a/b))
  elif op=="*":
    print(a*b)

Submission status: Accepted

Solution code:
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

Submission status: Accepted

Solution code:
l=[]
while True:
  a, op, b = list(map(str,input().split()))
  a = int(a)
  b = int(b)
  if op=="?":
    break
  elif op == "+":
    e = a + b
  elif op == "-":
    e = a - b
  elif op == "*":
    e = a * b
  else :
    e = a // b
  l.append(e)

for ele in l:
  print(ele)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
while True:

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
for i in range(20000):
    S = input().split()
    if S[1] == "?":
        exit()
    elif S[1] == "+":
        print(int(S[0]) + int(S[2]))
    elif S[1] == "-":
        print(int(S[0]) - int(S[2]))
    elif S[1] == "*":
        print(int(S[0])*int(S[2]))
    elif S[1] == "/":
        print(int(S[0])//int(S[2]))

Submission status: Accepted

Solution code:
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))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#ITP1_4_C
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)

Submission status: Accepted

Solution code:
while True:
    a,b,c = 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)
    else:
        break

Submission status: Accepted

Solution code:
#
# 4c
#


def main():
    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)
        else:
            pass


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
cal = []
cals = []

while True:
    cal =list(map(str, input().split()))
    if cal[1] == "?":
        break
    cals.append(cal)

for i in range(len(cals)):
    cal = cals[i]
    a = int(cals[i][0])
    b = int(cals[i][2])
    op = cals[i][1]
    if op == "+":
        print(a + b)
    elif op == "-":
        print(a - b)
    elif op == "*":
        print(a * b)
    elif op == "/":
        print(a // b)

Submission status: Accepted

Solution code:
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))

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
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)
    else:
        print(a//b)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
for i in range(10000):
  stra,op,strb=input().split()
  a=int(stra)
  b=int(strb)

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

Solution code:
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))

    else:
        exit()

Submission status: Accepted

Solution code:
op = None
while(True):
    a, op, b = [x for x in input().split()];
    ans=0
    a=int(a)
    b=int(b)
    if(op=='+'):
        ans=a+b
    elif(op=='-'):
        ans=a-b
    elif(op=='*'):
        ans=a*b
    elif(op=='/'):
        ans=a//b
    else :break
    print(ans)

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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(int(a/b))

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

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

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:

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

Submission status: Accepted

Solution code:
XS = open(0).read().split()
for i in range(0, len(XS), 3):
    a = XS[i + 0]
    op = XS[i + 1]
    b = XS[i + 2]
    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)
    else:
        print("?")

Submission status: Accepted

Solution code:
while True:
    arr = input().split()
    x = int(arr[0])
    op = arr[1]
    y = int(arr[2])
    if op == '+':
        print(f'{x+y}')
    elif op == '-':
        print(f'{x-y}')
    elif op == '*':
        print(f'{x*y}')
    elif op == '/':
        print(f'{x//y}')
    else:
        break

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
while True:
    l = input().split()

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

    if op == '?':
        break

    if op == '+':
        print("%d"%(a+b))
    elif op == '-':
        print("%d"%(a-b))
    elif op == '/':
        print("%d"%(a/b))
    else:
        print("%d"%(a*b))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

Solution code:
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))

Submission status: Accepted

Solution code:

 
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