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: Runtime Error

Solution code:
N = int(input())
T = list(map(int, input().split()))
M = int(input())

P, X = [], []
for i in range(M):
    p1, x1 = map(int, input().split())
    P.append(p1)
    X.append(x1)

count = 0
for i in T:
    count += T[i]

c = count

for i in range(len(X)):
    count = c
    count += X[i]
    count -= T[i]
    print(count

Submission status: Runtime Error

Solution code:
N = int(input())
T = list(map(int, input().split()))
M = int(input())

P, X = [], []
for i in range(M):
    p1, x1 = map(int, input().split())
    P.append(p1)
    X.append(x1)

count = 0
for i in T:
    count += T[i]

c = count

for i in X:
    count = c
    count += X[i]
    count -= T[i]
    print(count)

Submission status: Runtime Error

Solution code:
N = int(input())
T = list(map(int, input().split()))
M = int(input())

P, X = [], []
for i in range(M):
    p1, x1 = map(int, input().split())
    P.append(p1)
    X.append(x1)

count = 0
for i in T:
    count += T[i]
    c = count

for i in X:
    count = c
    count += X[i]
    count -= T[i]
    print(count

Submission status: Runtime Error

Solution code:
N = int(input())
T = list(map(int, input().split()))
M = int(input())

P, X = [], []
for i in range(M):
    pi, xi = map(int, input().split())
    P.append(pi)
    X.append(xi)

count = 0
for i in T:
    count += T[i]

for i in X:
    count += X[i]
    count -= T[i]
    print(count)

Submission status: Runtime Error

Solution code:
N = int(input())
T = list(map(int, input().split()))
M = int(input())

P, X = [], []
for i in range(M):
    p1, x1 = map(int, input().split)
    P.append(p1)
    X.append(x1)

count = 0
for i in T:
    count += T[i]

for i in X:
    count += X[i]
    count -= T[i]
    print(count)

Submission status: Runtime Error

Solution code:
N = int(input())
T = list(map(int, input().split()))
M = int(input())

P, X = [], []
for i in range(M):
    p1, x1 = map(int, input().split)
    P.append(p1)
    X.append(x1)

count = 0
for i in T:
    count += T[i]

discount = 0
for i in T:
    if i <= M:
        discount += T[i]
    break


special = 0
for i in P, X:
    special += P[i]
    special += X[i]

count *= M
count -= discount
count += special

print(count)

Submission status: Runtime Error

Solution code:
import copy

n = int(input())
t = list(map(int, input().split()))
sum_t = sum(t)


m = int(input())
for _ in range(m):
    idx, value = map(int, input().split())
    print(sum_t - t[idx - 1] + value)

Submission status: Runtime Error

Solution code:
s = list(input())

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

Submission status: Runtime Error

Solution code:
[a,op,b]=list(input().split())
siki=a+op+b
	print(eval(siki))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import bisect
N=int(input())
A=list(map(int,input().split()))
m=10**9+7
def g(n):
  return bisect.bisect_right(A,n)-bisect.bisect_left(A,n)
if N%2==0:
  if A.count(0)!=0:
    print(0)
    exit()
  else:
    for j in range(1,N//2+1):
      if g(2*j-1)!=2:
        print(0)
        exit()
else:
  if A.count(0)!=1:
    print(0)
    exit()
  for i in range(1,N//2+1):
    if g(2*i)!=2:
      print(0)
      exit()
print((2**(N//2))%m)

Submission status: Runtime Error

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: Runtime Error

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

Submission status: Runtime Error

Solution code:
import copy
n = int(input())
t = list(map(int, input().split()))
m = int(input())
c = []
for i in range(m):
	p, x = map(int, input().split())
	c = []
	c = copy.copy(t)
	c[p-1] = x
	print (sum(c))

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
A = int(input())
op = input()
B = int(input())

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

Submission status: Runtime Error

Solution code:
A = int(input())
op = input()
B = input()

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n=int(input())
t=list(map(int,input().split()))
m=int(input())
p=[0]*m
x=[0]*m
for i in range(m):
  p[i],x[i]=map(int,input().split())  
for i in range(m):
  print(sum(t)-t[p[i]-1]+x[i])

Submission status: Runtime Error

Solution code:
n = int(input())
t = list(map(int,input(),split()))
m = int(input())
p = [0]* m 
x = [0]* m 
for i in range(m):
    p[i],x[i]= map(int(input(),split()))
for i in range(m):
    print(sum(t)-t[p[i]-1]+x[i])

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s = list(input())

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

op = a[1]

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

Submission status: Runtime Error

Solution code:
>>>2+2

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
num_total = int(input())
hoge = input().split()
flag_one = True
flag_two = True


if num_total % 2 == 0:
  for i in hoge:
    """偶数の場合数値がすべて奇数である＆それぞれ２個づつあるかどうか判定する"""
    #数値がすべて奇数であるかどうか
    if int(i) % 2 != 1:
      flag_one = False
      break
  #２個づつあるかどうか
  hoge.sort()
  flag = True
  for i in range(len(hoge)):
    try:
      if flag == False:
        flag = True
        continue
      if hoge[i+1] != hoge[i]:
        flag_two = False
        break
      flag = False
    except:
      flag_one = False
  if flag_one == True and flag_two == True:
    ans = 2**(num_total/2)
    ans = ans % (10**9 + 7)
    print(int(ans))
  else:
    print(0)
else:
  for i in hoge:
    """奇数の場合数値すべて偶数である＆０以外すべて２個づつあるかどうか判定する"""
    #数値がすべて偶数であるかどうか
    if int(i) % 2 != 0:
      flag_one = False
      break
  #２個づつあるかどうか
  hoge.sort()
  flag = True
  for i in range(len(hoge)):
    try:
      if hoge[i] == "0":
        continue
      if flag == False:
        flag = True
        continue  
      if hoge[i+1] != hoge[i]:
        flag_two = False
        break
      flag = False
    except:
      flag_two = False
      break
  if flag_one == True and flag_two == True:
    ans = 2**((num_total-1)/2)
    ans = ans % (10**9 + 7)
    print(int(ans))
  else:
    print(0)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = input()
b = input()
c = input()

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())
l = list(map(int, input().split()))
l_2 = []
gusu_kisu = N % 2
end_F = 0
for i in range(N):
    if gusu_kisu == 1:
        An = l[i]
        if An % 2 == 1:
            end_F = 1
            break
        elif An == 0 and l_2.count(0) == 1:
            end_F = 1
            break
        elif l_2.count(An) == 2:
            end_F = 1
            break
        else:
            l_2.append(An)
    else:
        An = l[i]
        if An % 2 == 0:
            end_F = 1
            break
        elif l_2.count(An) == 2:
            end_F = 1
            break
        else:
            l_2.append(An)
#     print(An)
# print(end_F)
if end_F == 0:
    print((2 ** (N // 2)) % 1000000007)
else:
    print(0)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())
A = sorted(list(map(int, input().split())))
#print(A)
flg=0
if N % 2 == 0:
  for i in range(N//2):
    if A[2*i] == A[2*i+1] == 2*i+1:
      #print(A[i], A[i+1], 2*i+1)
      continue
    else:
      #print(A[i], A[i+1], 2*i+1)
      flg=1
      break
  if flg==1:
    #print('A')
    print(0)
  else:
    #print('B')
    print(2**(N//2))
else:
  if A[0] != 0:
    flg=1
    #print('C')
  else:
    for i in range((N-1)//2):
      if A[2*i+1] == A[2*i+2] == 2*(i+1):
        continue
      else:
        flg=1
        #print('D')
        break
  if flg==1:
    #print('E')
    print(0)
  else:
    #print('F')
    print(2**((N-1)//2))

Submission status: Runtime Error

Solution code:
list = list(map(int,input().split()))

list.sort()
if list[0]+list[1] == list[2]:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s=input()
a=s[0]
b=s[1]+s[2]
print(int(a)+int(b))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

print(int(a b c))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N=int(input())
T=[int(x) for x in input().split()]
M=int(input())
P=[]
X=[]
for i in range(M):
    p1,x1=(int(d) for d in input().split())
    P.append(p1)
    X.append(x1)
sum1=0
for i in range(N):
    sum1+=T[i]
for i in range(M):
    temp=sum1
    temp=temp-T[P[i]-1]+X[i]
    print(temp)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A, B= map(int(input().split))
OP= input()
P= A + B
M= A - B
print(P if OP== + else M)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n=int(input())

#データを並び替える
rowdata=[int(i) for i in input().split()]
rowdata.sort()

#nが偶数の時
if n%2==0:
    check=[]
    a=1
    for i in range(1,n,2):
        check.append(i)
        check.append(i)
    if check==rowdata:
        for i in range(int(n/2)):
            a*=2
            a=a%1000000007
            print(a)
    else:
        print(0)
        
#nが奇数の時
else:
    check=[]
    a=1
    if n==1:
        check=[0]
    else:
        for i in range(0,n,2):
            if i==0:
                check.append(i)
            else:
                check.append(i)
                check.append(i)
    if check==rowdata:
        print(int(2**((n-1)/2))%1000000007)
        for i in range(int((n-1)/2)):
            a*=2
            a=a%1000000007
            print(a)
    else:
        print(0)

Submission status: Runtime Error

Solution code:

n=int(input())
rowdata=[int(i) for i in input().split()]
rowdata.sort()

if n%2==0:
    check=[]
    for i in range(1,n,2):
        check.append(i)
        check.append(i)
    if check==rowdata:
        print(int(2**(n/2)))
    else:
        print(0)
else:
    check=[]
    if n==1:
        check=[0]
    else:
        for i in range(0,n,2):
            if i==0:
                check.append(i)
            else:
                check.append(i)
                check.append(i)
    if check==rowdata:
        print(int(2**((n-1)/2)))
    else:
        print(0)

Submission status: Runtime Error

Solution code:
n=int(input())
rowdata=[int(i) for i in input().split()]
rowdata.sort()

#nが偶数の時
if n%2==0:
    check=[]
    for i in range(1,n,2):
        check.append(i)
        check.append(i)
    if check==rowdata:
        print(int(2**(n/2)))
    else:
        print(0)
else:
    check=[]
    if n==1:
        check=[0]
    else:
        for i in range(0,n,2):
            if i==0:
                check.append(i)
            else:
                check.append(i)
                check.append(i)
    if check==rowdata:
        print(int(2**((n-1)/2)))
    else:
        print(0)

Submission status: Runtime Error

Solution code:

n=int(input())
rowdata=[int(i) for i in input().split()]
rowdata.sort()

#nが偶数の時
if n%2==0:
    check=[]
    for i in range(1,n,2):
        check.append(i)
        check.append(i)
    if check==rowdata:
        print(int(2**(n/2)))
    else:
        print(0)
else:
    check=[]
    for i in range(0,n,2):
        if i==0:
            check.append(i)
        else:
            check.append(i)
            check.append(i)
    if check==rowdata:
        print(int(2**((n-1)/2)))
    else:
        print(0)

Submission status: Runtime Error

Solution code:
n=int(input())
rowdata=[int(i) for i in input().split()]
rowdata.sort()

#nが偶数の時
if n%2==0:
    check=[]
    for i in range(1,n,2):
        check.append(i)
        check.append(i)
    if check==rowdata:
        print(int(2**(n/2)))
    else:
        print(0)
else:
    check=[]
    for i in range(0,n,2):
        if i==0:
            check.append(i)
        else:
            check.append(i)
            check.append(i)
    if check==rowdata:
        print(int(2**((n-1)/2)))
    else:
        print(0)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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: Runtime Error

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: Runtime Error

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

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

Submission status: Runtime Error

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: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:

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

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int, input().split()))

A.sort()
mod = 10 ** 9 + 7
i = 0
res = 0
if N == 1:
  if A[0] == 0:
    print(1)
  else:
    print(0)
  exit(0)
if N % 2 == 1:
  res = 1
  i = 1
  if A[0] == A[1]:
    print(0)
    exit(0)
  if A[0] == 1:
    print(0)
    exit(0)
else:
  res = 2
  i = 2
  if A[0] != A[1]:
    print(0)
    exit(0)
  if A[0] == 0:
    print(0)
    exit(0)
while i < N - 1:
  if A[i] == A[i + 1]:
    if N % 2 == 0:
      if A[i] != 2 * (i / 2 + 1) - 1:
        res = 0
        break
    else:
      if A[i] != 2 * (i // 2 + 1):
        res = 0
        break
    res *= 2
    i += 2
  else:
    res = 0
    break
print(res % mod)

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int, input().split()))

res = 1
temp = []
mid = 0
for i in range(N):
  if A.count(A[i]) == 2:
    if A[i] in temp:
      continue
    res *= 2
  else:
    if N % 2 == 1:
      if mid == 0:
        mid = 1
        continue
    if i == N - 1:
      continue
    res = 0
    break
  temp.append(A[i])
print(res)

Submission status: Runtime Error

Solution code:
instr = map(int, input())
a = int(instr[0])
b = int(instr[2])
op = instr[1]

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b=map(str, input().split())
if a==b:
    print("H")
else:
    print("D")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int, input().split()))
A = sorted(A)[::-1]
memo = [0 for i in range(N)]
memo[0] = N-1
memo[1] = N-1
if N % 2 == 0:
    for i in range(2, N):
        memo[i] = memo[i-2]-2
        if memo[i] != A[i]:
            print(0)
            exit()
else:
    for i in range(2, N-1):
        memo[i] = memo[i-2]-2
        if memo[i] != A[i]:
            print(0)
            exit()


# 最初(N//2)**2にしていた、それぞれの場合の数ではなくなってしまう
print((2**(N // 2))%(10**9+7))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())
test = list(map(int,input().split()))
M = int(input()) 
  
for _ in range(M):
  a,b = map(int,input().split())
  print(sum(test) - test[a] + b)

Submission status: Runtime Error

Solution code:
N = int(input())
test = list(map(int,input().split()))
M = int(input()) 
  
for _ in range(M):
  a,b = int(input()).split()
  test[a] = b
  print(sum(test))

Submission status: Runtime Error

Solution code:
N = input()
test = list(map(int,input()))
M = input() 
  
for _ in range(M):
  a,b = int(input()).split()
  test[a] = b
  print(sum(test))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import java.util.*;
public class Main{
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        String op = sc.next();
        int B = sc.nextInt();

        if (op.equals("+")){
            System.out.println(A+B);
        }
        else{
            System.out.println(A-B);
        }
        sc.close();
    }
}

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a, x, b = input()

if x == '+':
    ans = int(a)+int(b)
else:
    ans = int(a)-int(b)

print(ans)

Submission status: Runtime Error

Solution code:
_ = input()
T = list(map(int, input().split()))
M = int(input())
for i in range(M):
  P, X = map(int, input().split())
  ans = sum(T[:P]+T[P+1])+X
  print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
# coding: utf-8
A=input('数字を入力＞')
op=input('＞')
B=input('数字を入力＞')
if op == '+':
    print(int(A)+int(B))
else:
    print(int(A)-int(B))

Submission status: Runtime Error

Solution code:
# coding: utf-8
A=input('数字を入力＞')
op=raw_input('＞')
B=input('数字を入力＞')
if op == '+':
    print(int(A)+int(B))
else:
    print(int(A)-int(B))

Submission status: Runtime Error

Solution code:
# coding: utf-8
A=input('数字を入力＞')
op=raw_input('＋又はーを入力＞')
B=input('数字を入力>')
if op == '+':
    print(int(A)+int(B))
else:
    print(int(A)-int(B))

Submission status: Runtime Error

Solution code:
# coding: cp932
A=input('数字を入力＞')
op=raw_input('＋又はーを入力＞')
B=input('数字を入力>')
if op == '+':
    print(int(A)+int(B))
else:
    print(int(A)-int(B))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
# ファイルをオープンする
#test_data = open("test.txt", "r")

# 行ごとにすべて読み込んでリストデータにする
#line = test_data.readline()


N = input()
#N = int(line)
#line = test_data.readline()
T = [int(t) for t in input().split()]
#T = [int(t) for t in test_data.readline().split()]
total_time = sum(T)
#line = test_data.readline()
M = input()
#M = int(line)
for i in range(M):
	#line = test_data.readline()
	P, X = input().split()
	#P, X = map(int,line.split())
	ans = 0
	ans = total_time - T[i] + X
	print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a=int(input());b=str(input());c=int(input())

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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: Runtime Error

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: Runtime Error

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: Runtime Error

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: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import collections
n = int(input())
*pr, = map(int,input().split())
#print(pr)
d = collections.Counter(pr)
#print(d)
mod = 10**9+7
if n % 2 != 0:
  if d[0] != 1:
    print(0)
    exit()
  else:
    for k, v in d.items():
      if k != 0 and v != 2:
        print(0)
        exit()
      elif k%2 != 0:
        print(0)
        exit()
    print(((len(d)-1)**2)%mod)
else:
  for ky,vl in d.items():
    if ky == 0:
      print(0)
      exit()
    elif ky%2 == 0:
      print(0)
      exit()
    elif vl != 2:
      print(0)
      exit()
  print((len(d)**2)%mod)

Submission status: Runtime Error

Solution code:
n = int(input())
pr = list(map(int,input().split()))
#print(pr)
m = int(input())
f = lambda:map(int,input().split())
for i in range(m):
  n, d = f()
  #print(n,d)
  mot = pr[n-1]
  pr[n-1] = d
  print(sum(pr))
  pr[n-1] = mot

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,s,d=map(input().split())
if s=="+":
  print(int(a)+int(d))
else:
  print(int(a)-int(d))

Submission status: Runtime Error

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

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