Problem:


Score : 100 points

Problem Statement

Joisino wants to evaluate the formula "A op B".
Here, A and B are integers, and the binary operator op is either + or -.
Your task is to evaluate the formula instead of her.

Constraints

1≦A,B≦10^9

op is either + or -.

Input

The input is given from Standard Input in the following format:

A op B

Output

Evaluate the formula and print the result.

Sample Input 1

1 + 2

Sample Output 1

3

Since 1 + 2 = 3, the output should be 3.

Sample Input 2

5 - 7

Sample Output 2

-2



Sample input:
1 + 2


Sample output:
3

Submission status: Accepted

Solution code:
def main():
    s = input().split()
    a=int(s[0])
    b=int(s[2])
    if(s[1]=="+"):
        print(a+b)
    else:
        print(a-b)
        
main()

Submission status: Accepted

Solution code:
a, b, c = input().split()
x = int(a)
y = int(c)
print(x + y if b=='+' else  x - y)

Submission status: Accepted

Solution code:
a=input()

print(eval(a))

Submission status: Accepted

Solution code:

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

print(a+b if o == '+' else a-b)

Submission status: Accepted

Solution code:
A,op,B=(x for x in input().split())
A1=int(A)
B1=int(B)
if(op=="+"):
    print(A1+B1)
else:
    print(A1-B1)

Submission status: Accepted

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

if op == '+':
    print(int(a) + int(b))
else:
    print(int(a) - int(b))

Submission status: Accepted

Solution code:
str = input()
S = str.split(" ")
if S[1]== '+':
    print((int(S[0]) + int(S[2])))
else:
    print((int(S[0]) - int(S[2])))

Submission status: Accepted

Solution code:
a,b,c = input().split()
if b == '+':
	print(int(a) + int(c))
else:
	print(int(a) - int(c))

Submission status: Accepted

Solution code:
a, o, b = map(str, input().split())
if o is "-":
    print(int(a)-int(b))
else:
    print(int(a)+int(b))

Submission status: Accepted

Solution code:
a,op,b = list(input().split())
if op == "+":
    print(int(a)+int(b))
else:
    print(int(a)-int(b))

Submission status: Accepted

Solution code:
N = input().split()
if N[1] == '+':
    print(int(N[0]) + int(N[2]))
elif N[1] == '-':
    print(int(N[0]) - int(N[2]))

Submission status: Accepted

Solution code:
a,o,b=map(str,input().split())
if o == '+':
    print(int(a)+int(b))
elif o =='-':
    print(int(a)-int(b))

Submission status: Accepted

Solution code:
a,op,b = input().split()
a = int(a)
b = int(b)
if op == '+':
  print(a+b)
else:
  print(a-b)

Submission status: Accepted

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

if op=="+":
    print(int(a)+int(b))
else:
    print(int(a)-int(b))

Submission status: Accepted

Solution code:
A, op, B = map(str, input().split())

if op == "+":
    print(int(A) + int(B))

if op == "-":
    print(int(A) - int(B))

Submission status: Accepted

Solution code:
import sys
def input(): return sys.stdin.readline().strip()
a,op,b=input().split()
if op == '+':
    print(int(a) + int(b))
else:
    print(int(a) - int(b))

Submission status: Accepted

Solution code:
a,op,b=map(str,input().split())
print((int(a)-int(b),int(a)+int(b))[op=="+"])

Submission status: Accepted

Solution code:
a,b,c =(map(str,input().split()))
if b=="+":
    print(int(a)+int(c))
else:
    print(int(a)-int(c))

Submission status: Accepted

Solution code:
A, op, B = input().rstrip().split()
print(eval(A+op+B))

Submission status: Accepted

Solution code:
a, op, b = map(str, input().split())
print(eval(a+op+b))

Submission status: Accepted

Solution code:
a, o, b = map(str, input().split())
a = int(a)
b = int(b)
print(a + b if o == "+" else a - b)

Submission status: Accepted

Solution code:
a ,op ,b =input().split()
if op=='+':
  print(int(a)+int(b))
else:
  print(int(a)-int(b))

Submission status: Accepted

Solution code:
A, op, B = input().split()
A = int(A)
B = int(B)

if op == '+':
	print(A + B)
else:
	print(A - B)

Submission status: Accepted

Solution code:
a,b,c = input().split()
print(eval(str(a)+b+str(c)))

Submission status: Accepted

Solution code:
a, b, c = map(str, input().split())
if b == '+':
  print(int(a) + int(c))
elif b =='-':
  print(int(a) - int(c))
else:
  print("Error")

Submission status: Accepted

Solution code:
print(eval(input().replace(" ","")))

Submission status: Accepted

Solution code:
a, op, b = input().split()
if op == '+':
    print(int(a) + int(b))
elif op == '-':
    print(int(a) - int(b))

Submission status: Accepted

Solution code:
a, op, b = input().split()
a = int(a)
b = int(b)
if "+" in op:
    ans = a + b
else:
    ans = a - b
print(ans)

Submission status: Accepted

Solution code:
a, b, c = map(str, input().split())
if b == '+':
  print(int(a)+int(c))
else:
  print(int(a)-int(c))

Submission status: Accepted

Solution code:
A, B, C =input().split()
if B =='+':
    print(int(A)+int(C))
else:
    print(int(A)-int(C))

Submission status: Accepted

Solution code:
A, op, B = input().split()
if op == '+':
  print(int(A)+int(B))
else:
  print(int(A)-int(B))

Submission status: Accepted

Solution code:
a = input().split()

num1 = int(a[0])
num2 = int(a[2])

if a[1] == "+":
    print(num1 + num2)
else:
    print(num1 - num2)

Submission status: Accepted

Solution code:
l = list(map(str,input().split()))
if l[1] == "+":
    print(int(l[0])+int(l[2]))
else:
    print(int(l[0])-int(l[2]))

Submission status: Accepted

Solution code:
def solve(a, op, b):
    ans = 0
    if op == '+':
        ans = int(a) + int(b)
    else:
        ans = int(a) - int(b)
    return ans
 
 
def main():
    a, op, b = map(str, input().split())
    ans = solve(a, op, b)
    print(ans)
 
 
if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
input_list = input().split()
a = int(input_list[0])
b = int(input_list[2])
op = input_list[1]
if op == '+':
  ans = a + b
elif op == '-':
  ans = a - b
print(ans)

Submission status: Accepted

Solution code:
a, op, b = map(str, input().rstrip().split())

if op == "+":
    print(int(a)+int(b))
elif op == "-":
    print(int(a)-int(b))

Submission status: Accepted

Solution code:
A,op,B = input().split()

if op == "+":
  print(int(A)+int(B))
else:
  print(int(A)-int(B))

Submission status: Accepted

Solution code:
a, op, b = map(str, input().split())
a = int(a); b = int(b)

if op == "+":
    print(a+b)
else:
    print(a-b)

Submission status: Accepted

Solution code:
num = input().split()

a,b = int(num[0]), int(num[2])
if num[1]=='+': print(a+b)
else: print(a-b)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# スペース区切りの整数の入力
#a, b, c = map(int, input().split())
a, b, c = input().split()
a = int(a)
c = int(c)

if b == "+":
  print(a + c)
elif b == "-":
  print(a - c)

Submission status: Accepted

Solution code:
s_input =   input().split()
if(s_input[1] == '+'):
    print(int(s_input[0])+int(s_input[2]))
else:
    print(int(s_input[0])-int(s_input[2]))

Submission status: Accepted

Solution code:
X, op, Y = map(str, input().split())

if op == "+":
    answer = int(X) + int(Y)
elif op == "-":
    answer = int(X) - int(Y)

print(answer)

Submission status: Accepted

Solution code:
a,b,c = map(str,input().split())
if b == "+":
  print(int(a)+int(c))
else:
  print(int(a)-int(c))

Submission status: Accepted

Solution code:
AopB=input().split()
if AopB[1]=='+':
  print(int(AopB[0])+int(AopB[2]))
else:
  print(int(AopB[0])-int(AopB[2]))

Submission status: Accepted

Solution code:
s = list(map(str,input().split()))
if s[1] == '+':
  print (int(s[0])+int(s[2]))
else:
  print (int(s[0])-int(s[2]))

Submission status: Accepted

Solution code:

from collections import Counter
import sys

def main():

    a, b, c = input().split()
    if b == '+':
        print(int(a) + int(c))
    else:
        print(int(a) - int(c))




if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

# input
A, op, B = map(str, input().split())

# solve & output
print(int(A) + int(B) if op == '+' else int(A) - int(B))

Submission status: Accepted

Solution code:
shiki = input().split()
if shiki[1] == '+':
  print(int(shiki[0]) + int(shiki[2]))
elif shiki[1] == '-':
  print(int(shiki[0]) - int(shiki[2]))

Submission status: Accepted

Solution code:
a, b, c = input().split()
if b == '+':
    print(int(a) + int(c))
else:
    print(int(a) - int(c))

Submission status: Accepted

Solution code:
a,b,c = input().split()
if b =='+':
  print(int(a)+int(c))
else:
  print(int(a)-int(c))

Submission status: Accepted

Solution code:
a, b, c = input().split()
if b == "+":
  print(int(a) + int(c))
else:
  print(int(a) - int(c))

Submission status: Accepted

Solution code:
s = input().split()
if s[1] == "+":
  print(int(s[0]) + int(s[2]))
else:
  print(int(s[0]) - int(s[2]))

Submission status: Accepted

Solution code:
A,o,B = input().split(" ")

if o=="+":
  print(int(A)+int(B))
else:
  print(int(A)-int(B))

Submission status: Accepted

Solution code:
a, b, c = input().split()
if (b == '+') : print(int(a) + int(c))
else : print(int(a) - int(c))

Submission status: Accepted

Solution code:
a=input().split()
if a[1]=='+':
  print(int(a[0])+int(a[2]))
else:
  print(int(a[0])-int(a[2]))

Submission status: Accepted

Solution code:
inpt = list(input().split())
if inpt[1] == '+':
	print(int(inpt[0])+int(inpt[2]))
if inpt[1] == '-':
	print(int(inpt[0])-int(inpt[2]))

Submission status: Accepted

Solution code:
txt = input()
print(eval(txt))

Submission status: Accepted

Solution code:
##input##
input_lines = []
for i in range(1):
    input_lines.append(input())

print(eval(input_lines[0]))

Submission status: Accepted

Solution code:
a, op ,b = input().split()
if op == "+":
	print(int(a) + int(b))
else:
  	print(int(a) - int(b))

Submission status: Accepted

Solution code:
a, op, b = map(str, input().split())
if op == "+":
    print(int(a) + int(b))
else:
    print(int(a) - int(b))

Submission status: Accepted

Solution code:
a, op, b = input().split()
a = int(a)
b = int(b)
ans = 0
if op == '-':
  ans = a - b
else:
  ans = a + b
print(ans)

Submission status: Accepted

Solution code:
a, sign, b = input().split()
if sign == "+":
  print(int(a) + int(b))
else:
  print(int(a) - int(b))

Submission status: Accepted

Solution code:
import sys, re, os
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from fractions import gcd
 
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def S_MAP(): return map(str, input().split())
def LIST(): return list(map(int, input().split()))
def S_LIST(): return list(map(str, input().split()))

sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

l = S_LIST() 
op = l[1]
a = int(l[0])
b = int(l[2])
if op == "-":
    print(a-b)
else:
    print(a + b)

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys
sys.setrecursionlimit(300000)


def solve(A: int, op: str, B: int):
    if op == '+':
        ret = A + B
    else:
        ret = A - B
    print(ret)
    return


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  # type: int
    op = next(tokens)  # type: str
    B = int(next(tokens))  # type: int
    solve(A, op, B)

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
A, op, B = input().split()

if op == '+':
    print(int(A) + int(B))
else:
    print(int(A) - int(B))

Submission status: Accepted

Solution code:
c = list(input().split())

if c[1] == "+":
    print(int(c[0]) + int(c[2]))
elif c[1] == "-":
    print(int(c[0]) - int(c[2]))

Submission status: Accepted

Solution code:
a,op,b = map(str, input().split())
a = int(a)
b = int(b)

if op == "+":
    print(int(a + b))
if op == "-":
    print(int(a - b))

Submission status: Accepted

Solution code:
A,o,B = list(map(str,input().split()))

if o == '+':
    print(int(A)+int(B))
else:
    print(int(A)-int(B))

Submission status: Accepted

Solution code:
x,op,y = input().split()
x = int(x)
y = int(y)
print(x+y if op == '+' else x-y)

Submission status: Accepted

Solution code:
a, op, b = map(str, input().split())
print(int(a)+int(b)) if op == "+" else print(int(a)-int(b))

Submission status: Accepted

Solution code:
strs = list(map(str,input().split()))
A = int(strs[0])
B = int(strs[2])
if strs[1] == "+":
  print(A+B)
else:
  print(A-B)

Submission status: Accepted

Solution code:
a,b,c=input().split()
if b=='+':
    print(int(a)+int(c))
else:
    print(int(a)-int(c))

Submission status: Accepted

Solution code:
a, b, c = input().split()
if b == "+":
    print(int(a) + int(c))
else:
    print(int(a) - int(c))

Submission status: Accepted

Solution code:
A,op,B = map(str,input().split())
if op =="+":
    print(int(A)+int(B))
else:
    print(int(A)-int(B))

Submission status: Accepted

Solution code:
import sys
import math
cadena = list()
sub = list()
sub2 =list()
s  =""" Since <fontstyle="vertical−align:inherit;"><fontstyle="vertical−align:inherit;">1+2=3<⁄font><⁄font>, the output should be <fontstyle="vertical−align:inherit;"><fontstyle="vertical−align:inherit;">3<⁄font><⁄font>."""
salida = """<fontstyle="vertical−align:inherit;"><fontstyle="vertical−align:inherit;">3<⁄font><⁄font>."""

kl = salida.find(">3<")


x = s.split()
j = s.find("1+2=3")
l = s.find(">3<")
sub2.append(s[l+1])

sub.append(s[j:j+5])
c = sub[0]
from itertools import permutations

lines = sys.stdin.readlines()
for linea in lines:
    c = linea.split()
    c = list(map(str,c))


x1 = int(c[0])
x2 =int(c[2])

operador = c[1]

if operador == "+":
  op = x1+x2
if operador == "-":
  op = x1-x2
elif operador == "*":
  op = x1*x2
if operador == "/":
  op = x1/x2      
str(op)
operacion1 = s[j:j+2]
my_lst_str = ''.join(map(str, c)) 
operacion1 = s[j:j+3]
men = s.replace(operacion1, my_lst_str)
s = men
numero =s[j+4]
men1 = salida.replace(salida[74], str(op))
men = s.replace(numero, str(op))
print(op)

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
from collections import defaultdict
from collections import deque
from heapq import heappush, heappop
import sys
import math
import bisect
import random
import itertools
sys.setrecursionlimit(10**5)
stdin = sys.stdin
bisect_left = bisect.bisect_left
bisect_right = bisect.bisect_right
def LI(): return list(map(int, stdin.readline().split()))
def LF(): return list(map(float, stdin.readline().split()))
def LI_(): return list(map(lambda x: int(x)-1, stdin.readline().split()))
def II(): return int(stdin.readline())
def IF(): return float(stdin.readline())
def LS(): return list(map(list, stdin.readline().split()))
def S(): return list(stdin.readline().rstrip())
def IR(n): return [II() for _ in range(n)]
def LIR(n): return [LI() for _ in range(n)]
def FR(n): return [IF() for _ in range(n)]
def LFR(n): return [LI() for _ in range(n)]
def LIR_(n): return [LI_() for _ in range(n)]
def SR(n): return [S() for _ in range(n)]
def LSR(n): return [LS() for _ in range(n)]
mod = 1000000007
inf = float('INF')

#A
def A():
    a = LS()
    if a[1][0] == "+":
        print(int("".join(a[0])) + int("".join(a[2])))
    else:
        print(int("".join(a[0])) - int("".join(a[2])))
    return

#B
def B():
    return

#C
def C():
    return

#D
def D():
    return

#E
def E():
    return

#F
def F():
    return

#G
def G():
    return

#H
def H():
    return

#Solve
if __name__ == '__main__':
    A()

Submission status: Accepted

Solution code:

a,op,b=map(str,input().split())
if op=="+":
  suma=int(a)+int(b)
  print(suma)
elif op=="-":
  resta=int(a)-int(b)
  print(resta)

Submission status: Accepted

Solution code:
a,op,b = input().split()
if op == '+':
    print(int(a) + int(b))
else:
    print(int(a) - int(b))

Submission status: Accepted

Solution code:
A, op, B = input().split()

op = 1 if op == '+' else -1
print(int(A) + int(B) * op)

Submission status: Accepted

Solution code:
def main():
    a,op,b = input().split(' ')
    a = int(a)
    b = int(b)
    if op =='+':
        print(a+b)
    else:
        print(a-b)

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
instr = list(map(str, input().split()))
a = int(instr[0])
b = int(instr[2])
op = instr[1] 
if op == "+":
  print (a+b)
else:
  print(a-b)

Submission status: Accepted

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

if op == "+":
    print(a+b)
else:
    print(a-b)

Submission status: Accepted

Solution code:
a = input().split(' ')
if a[1] == "+":
  print(int(a[0]) + int(a[2]))
else:
  print(int(a[0]) - int(a[2]))

Submission status: Accepted

Solution code:
list=input().split()
if list[1] == "+":print(int(list[0])+int(list[2]))
else:print(int(list[0])-int(list[2]))

Submission status: Accepted

Solution code:
n = input().split()
if n[1] == '+':
  print(int(n[0]) + int(n[2]))
else:
  print(int(n[0]) - int(n[2]))

Submission status: Accepted

Solution code:
li = input().split()
if li[1] == "+":
  print(int(li[0])+int(li[2]))
else:
  print(int(li[0])-int(li[2]))

Submission status: Accepted

Solution code:
a, b, c = map(str, input().split())

if b == '+':
    print(int(a) + int(c));
else:
    print(int(a) - int(c));

Submission status: Accepted

Solution code:
#x, y = map(int,input().split())
#ls = list(map(int,input().split()))
#n = int(input())
s = input()
#x, y = input().split()
print(eval(s))

Submission status: Accepted

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

A = int(a)
B = int(b)

if op == '+':
    print(A + B)
else:
    print(A - B)

Submission status: Accepted

Solution code:
a, b, c = map(str, input().split())
a = int(a)
c = int(c)

if b=="+":
    print(int(a+c))
else:
    print(int(a-c))

Submission status: Accepted

Solution code:
s = input().split()
A = int(s[0])
B = int(s[2])

if(s[1]=="+"):
    print(A+B)
else:
    print(A-B)

Submission status: Accepted

Solution code:
print(eval(''.join(input().split())))

Submission status: Accepted

Solution code:
A, op, B = input().split()

num_A = int(A)
num_B = int(B)
if op == '+':
    print(num_A + num_B)
else:
    print(num_A - num_B)

Submission status: Accepted

Solution code:
a,b,c = map(str,input().split())
if b=='+':
    print(int(a)+int(c))
else:
    print(int(a)-int(c))

Submission status: Accepted

Solution code:
a, op, b = list(input().split())
a, b = int(a), int(b)
if op == '+':
	print(a + b)
else:
	print(a - b)

Submission status: Accepted

Solution code:
A, op, B = input().split()

print(eval(A + op + B))

Submission status: Accepted

Solution code:
a = input().split(" ")

if a[1] == "+":
  print(int(a[0])+int(a[2]))
else:
  print(int(a[0])-int(a[2]))

Submission status: Accepted

Solution code:
S = input()

print(eval(S))

Submission status: Accepted

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

if op == "+":
    print(a+b)
elif op == "-":
    print(a-b)

Submission status: Accepted

Solution code:
A = input().split()
if A[1] == "+":
  print(int(A[0])+int(A[2]))
else:
  print(int(A[0])-int(A[2]))

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-

def solve():
    A, op, B = input().split()
    A, B = int(A), int(B)

    if op == "+":
        print(A+B)
    else:
        print(A-B)

if __name__ == "__main__":
    solve()

Submission status: Accepted

Solution code:
a, op, b = map(str, input().split())

a = int(a)
b = int(b)
if op == '+':
    print(a + b)
else:
    print(a - b)

Submission status: Accepted

Solution code:
x, ope, y = input().split()

if str(ope) == '+':
    print(int(x)+int(y))
else:
    print(int(x)-int(y))

Submission status: Accepted

Solution code:
a,o,b=input().split()
if o=='+':
    print(int(a)+int(b))
else:
    print(int(a)-int(b))

Submission status: Accepted

Solution code:
a,b,c = input().split()
if b == "+":
	print(int(a)+int(c))
else:
	print(int(a)-int(c))

Submission status: Accepted

Solution code:
A, op, B = input().split()

A, B = int(A), int(B)
if op == "+":
  print(A+B)
else:
  print(A-B)

Submission status: Accepted

Solution code:
A, s, B = input().split()

if s == "+":
    print(int(A) + int(B))
else:
    print(int(A) - int(B))

Submission status: Accepted

Solution code:
a,op,b = map(str, input().split())
if op=='+':
  print(int(a)+int(b))
else:
  print(int(a)-int(b))

Submission status: Accepted

Solution code:
p=input().rstrip().split(' ')
if p[1]=='+':
  print(int(p[0]) + int(p[2]))
else:
  print(int(p[0]) - int(p[2]))

Submission status: Accepted

Solution code:
nl = lambda: list(map(int, input().split()))
sl = lambda: input().split()
n = lambda: int(input())
s = lambda: input()

A, op, B = sl()
A = int(A)
B = int(B)

if op == '+':
    print(A+B)
else:
    print(A-B)

Submission status: Accepted

Solution code:
A, op, B = map(str, input().split())

if op == '+':
    print (int(A) + int(B))
else:
    print (int(A) - int(B))

Submission status: Accepted

Solution code:
li = []
li=input().split()
print(int(li[0]) + int(li[1]+li[2]))

Submission status: Accepted

Solution code:
a, o, b = input().split()
if o == "+":
    print(int(a) + int(b))
else:
    print(int(a) - int(b))

Submission status: Accepted

Solution code:
a, op, b = map(str, input().split())

a = int(a)
b = int(b)

if op == "+":
    print(a + b)
else:
    print(a - b)

Submission status: Accepted

Solution code:
a,p,b = map(str,input().split())
a = int(a)
b = int(b)
if p == "+":
    print(a + b)
else:
    print(a - b)

Submission status: Accepted

Solution code:
#!/usr/bin/env python3

s = list(input().split())

if s[1] == '+':
    print(int(s[0]) + int(s[2]))
else:
    print(int(s[0]) - int(s[2]))

Submission status: Accepted

Solution code:
A, op, B = input().split()

if op == "+" :
    print(int(A) + int(B))
elif op =="-":
    print(int(A) - int(B))

Submission status: Accepted

Solution code:
a,b,c=input().split()
a=int(a)
c=int(c)
if b=="+":
	print(a+c)
else:
	print(a-c)

Submission status: Accepted

Solution code:
a,op,b=input().split()
if op=='+':
  print(int(a)+int(b))
else:
  print(int(a)-int(b))

Submission status: Accepted

Solution code:
a =input()
print(eval(a))

Submission status: Accepted

Solution code:
a, op, b = input().split(' ')
a = int(a)
b = int(b)
if op == '+':
    print(a+b)
else:
    print(a-b)

Submission status: Accepted

Solution code:
A, op, B = input().split()
if op == "+":
    print(int(A) + int(B))
else:
    print(int(A) - int(B))

Submission status: Accepted

Solution code:
a,op,b = map(str,input().split())

a,b = int(a),int(b)

if op == '+':
    print(a+b)

else:
    print(a-b)

Submission status: Accepted

Solution code:
A, op, B = input().split()
A = int(A)
B = int(B)
if op == "+":
    print(A + B)
else:
    print(A - B)

Submission status: Accepted

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

if op == '+':
  print(a + b)
else:
  print(a - b)

Submission status: Accepted

Solution code:
a,op,b = input().split()
ans = 0
if op == "+":
  ans = int(a)+int(b)
else:
  ans = int(a)-int(b)
print(ans)

Submission status: Accepted

Solution code:
A,op,B = map(str,input().split())

if(op == '+'):
  print(int(A) + int(B))
else:
  print(int(A) - int(B))

Submission status: Accepted

Solution code:
def abc():
    a, op, b = input().rstrip().split()
    if op == '+':
        print(int(a) + int(b))
    else:
        print(int(a) - int(b))


abc()

Submission status: Accepted

Solution code:
a,b,c = input().split()
if b == "+":
    print(int(a)+int(c))
else:print(int(a)-int(c))

Submission status: Accepted

Solution code:
# A問題
A, op, B = map(str, input().split())
if op == "+":
    print(int(A) + int(B))
else:
    print(int(A) - int(B))

Submission status: Accepted

Solution code:
A, op, B = input().split()
A = int(A)
B = int(B)

if op == '+':
    print(A + B)
elif op == '-':
    print(A - B)

Submission status: Accepted

Solution code:
i = input().split()
A = int(i[0])
op = i[1]
B = int(i[2])

if op == '+':
    print(A+B)
elif op == '-':
    print(A-B)

Submission status: Accepted

Solution code:
A, op, B = map(str, input().split())
ans = 0
if op == '+':
    ans = int(A) + int(B)
else:
    ans = int(A) - int(B)
    
print(ans)

Submission status: Accepted

Solution code:
A,op,B= input().split()
if (op=='+'):
    print(int(A)+int(B))
if(op=='-'):
    print(int(A)-int(B))

Submission status: Accepted

Solution code:
a, b, c = input().split()
if b == '+':
    print(int(a) + int(c))
elif b == '-':
    print(int(a) - int(c))

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

a = int(a)
b = int(b)

if op =='+':
    print(a+b)
else:
    print(a-b)

Submission status: Accepted

Solution code:
a, b, c = raw_input().split()
if b == "+":
    print int(a) + int(c)
elif b == "-":
    print int(a) - int(c)

Submission status: Accepted

Solution code:
str = input().split()

if str[1] == '+':
    print(int(str[0]) + int(str[2]))
else:
    print(int(str[0]) - int(str[2]))

Submission status: Accepted

Solution code:
a,b,c, = list(input().split(" "))
print(eval(a+b+c))

Submission status: Accepted

Solution code:
a, x, b = input().split()
if x == '+':
    print(int(a)+int(b))
else:
    print(int(a)-int(b))

Submission status: Accepted

Solution code:
a=list(map(str,input().split()))
if a[1]=='+':
    print(int(a[0])+int(a[2]))
else:
    print(int(a[0])-int(a[2]))

Submission status: Accepted

Solution code:
ls = [x for x in input().split()]

if ls[1]=="+":
    print(int(ls[0])+int(ls[2]))
else:
    print(int(ls[0])-int(ls[2]))

Submission status: Accepted

Solution code:
A,op,B = input().split()
print(int(A)+int(B) if op == "+" else int(A)-int(B))

Submission status: Accepted

Solution code:
a,op,c=input().split()
if op=='+':
    print(int(a)+int(c))
else:
    print(int(a)-int(c))

Submission status: Accepted

Solution code:
a, op, b= input().split()
print(int(a)+int(b) if op=="+" else int(a)-int(b))

Submission status: Accepted

Solution code:
A, op, B = input().split()

if op == '+':
    print(int(A)+int(B))
else:
    print(int(A)-int(B))

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
A - Addition and Subtraction Easy
https://atcoder.jp/contests/abc050/tasks/abc050_a

"""
import sys


def main(args):
    s = input()
    print(eval(s))


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

Submission status: Accepted

Solution code:
a,p,b = input().split()
a = int(a)
b = int(b)
if p == '+':
  print(a+b)
else:
  print(a-b)

Submission status: Accepted

Solution code:
a,op,b=map(str,input().split())
if op =="+":
  print(int(a)+int(b))
else:
  print(int(a)-int(b))

Submission status: Accepted

Solution code:
a=input().split()
print(int(a[0])+int(a[2]) if a[1]=="+" else int(a[0])-int(a[2]))

Submission status: Accepted

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

a = int(a)
b = int(b)

if op == "+":
    print(a+b)
else:
    print(a-b)

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys


def solve(A: str, op: str, B: str):
    print(eval(A + op + B))

    return


# Generated by 1.1.4 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = (next(tokens))  # type: int
    op = next(tokens)  # type: str
    B = (next(tokens))  # type: int
    solve(A, op, B)


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
A, op, B = input().split()

A = int(A)
B = int(B)

# print(A)
# print(op)
# print(B)

if op == '+':
    print(A + B)
elif op == '-':
    print(A - B)

Submission status: Accepted

Solution code:
###template###
import sys
def input(): return sys.stdin.readline().rstrip()
def mi(): return map(int, input().split())
###template###

a, b, c = input().split()

if b == '+': print(int(a)+int(c))
else: print(int(a)-int(c))

Submission status: Accepted

Solution code:
# encoding:utf-8
import copy
import random
import bisect #bisect_left　これで二部探索の大小検索が行える
import fractions #最小公倍数などはこっち
import math
import sys

mod = 10**9+7
sys.setrecursionlimit(mod) # 再帰回数上限はでdefault1000

A,op,B = input().split()
if str(op) == "+":
    print(int(A)+int(B))
else:
    print(int(A)-int(B))

Submission status: Accepted

Solution code:
a,op,b = input().split()
print(int(a) + int(b) if op == "+" else int(a) - int(b) )

Submission status: Accepted

Solution code:
A,op,B = map(str, input().split())
ans = 0
A = int(A)
B = int(B)

if op == "+":
    ans = A + B
else:
    ans = A - B

print(ans)

Submission status: Accepted

Solution code:
a = input().split()

if a[1] == "+":
  print(int(a[0]) + int(a[2]))
else:
  print(int(a[0]) - int(a[2]))

Submission status: Accepted

Solution code:
formula = input().split()
a = int(formula[0])
op = formula[1]
b = int(formula[2])

ans = a + b if op == '+' else a - b
print(ans)

Submission status: Accepted

Solution code:
eq = input()
eq = eq.replace('\r\n',' ')
eq = eq.replace('\n',' ')
eq = eq.split()
a = int(eq[0])
b = int(eq[2])
if (eq[1] == '+'):
    c = a + b
elif (eq[1] == '-'):
    c = a -b
print(c)

Submission status: Accepted

Solution code:
print (eval (input()))

Submission status: Accepted

Solution code:
A, op, B = input().split()

ans = 0
if op == "+" :
    ans = int(A) + int(B)
if op == "-" :
    ans = int(A) - int(B)

print(ans)

Submission status: Accepted

Solution code:
A, op, B = input().split()
a = int(A)
b = int(B)
if op == '+':
  print(a + b)
else:
  print(a - b)

Submission status: Accepted

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

if op == '+':
    print(a + b)
else:
    print(a - b)

Submission status: Accepted

Solution code:
A,X,B = map(str,input().split(' '))
if X == '+':
  print(int(A) + int(B))
else:
  print(int(A) - int(B))

Submission status: Accepted

Solution code:
a, op, b = input().split()
a, b = int(a), int(b)
print(a + b if op =='+' else a - b)

Submission status: Accepted

Solution code:
x, op, y = input().split()
if op == "+":
    print(int(x) + int(y))
else:
    print(int(x) - int(y))

Submission status: Accepted

Solution code:
A,o,B = input().split()
if o == "+":
    print(int(A) + int(B))
else:
    print(int(A) - int(B))

Submission status: Accepted

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

a = int(a)

b = int(b)

if op== '+':
    print(a + b)
elif op == '-':
    print(a - b)

Submission status: Accepted

Solution code:
# 改行区切り
# n = int(input())

# 空白区切り
a, op, b = input().split()
ans = a + op + b
print(eval(ans))

Submission status: Accepted

Solution code:
a,op,b=input().split()
a=int(a)
b=int(b)
if op=='+':
  print(a+b)
elif op=='-':
  print(a-b)

Submission status: Accepted

Solution code:
# 改行区切り
# n = int(input())

# 空白区切り
a, op, b = input().split()
a = int(a)
b = int(b)
if op == '+':
    print(a + b)
elif op == '-':
    print(a - b)

Submission status: Accepted

Solution code:
a, op , b = input().split()
c=int(a)
d=int(b)
if op=="+":
    op=c+d
elif op=="-":
      op=c-d
print(op)

Submission status: Accepted

Solution code:
x, op, y = input().split()
x = int(x)
y = int(y)
if op == "+":
    print(x + y)
else:
    print(x - y)

Submission status: Accepted

Solution code:
A, op, B = input().split()
A  = int(A)
B = int(B)
if op == '+':
  print(A + B)
elif op == "-":
  print(A - B)

Submission status: Accepted

Solution code:
A, op, B = input().split()
A = int(A)
B = int(B)
if op == "+":
  print(A + B)
elif op == "-":
  print(A - B)

Submission status: Accepted

Solution code:
x, op, y = input().split()
x = int(x)
y = int(y)
if op == "+":
  print(x + y)
else:
    print(x - y)