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:
# 入力
a = int(input())
op = input()
b = int(input())

# 処理
if op == '+':
    answer = a + b
elif op == '-':
    answer = a - b

# 出力
print(answer)

Submission status: Runtime Error

Solution code:
# 入力
a = int(input())
op = input()
b = int(input())

# 処理
if op == '+':
    answer = a + b
elif op == '-':
    answer = a - b
    
# 出力
print(answer)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = input()

if a[2] == "+":
    answer = int(a[0]) + int(a[4])
elif a[2] == "-":
    answer = int(a[0]) - int(a[4])
else:
    print('該当しない')

print(answer)

Submission status: Runtime Error

Solution code:
a = input()

if a[2] == "+":
    answer = int(a[0]) + int(a[4])
elif a[2] == "-":
    answer = int(a[0]) - int(a[4])

print(answer)

Submission status: Runtime Error

Solution code:
n = int(input())
p = map(int, input().split())
k = int(input())
s = sum(p)
for i in range(k):
  a, b = map(int, input().split())
  print(s - p[a-1] + b)

Submission status: Runtime Error

Solution code:
n = int(input())
p = list(map(int, input().split()))
k = int(input())
s = sum(p)
for i in range(k):
  a, b = map(int, input().split())
  print(s - p[a-1] + b)

Submission status: Runtime Error

Solution code:
a, op, b = input().split()
if op = '+':
	ans = int(a)+int(b)
else:
	ans = int(a) - int(b)
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(a)-int(b))

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:

def main():
    n = input().split()
    if n[1] == '+':
        print(int(n[0]) + int(n[1]))
    else:
        print(int(n[0]) - int(n[1]))


if __name__ == "__main__":
    main()

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

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:
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=input()
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=input()
if a[1]=="+":
  print(a[0]+a[2])
else:
  print(a[0]-a[2])

Submission status: Runtime Error

Solution code:
a=input()
if a[1]=="+":
  print(a+b)
else:
  print(a-b)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = list(map(int,input().split()))
op = a[1]

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

Submission status: Runtime Error

Solution code:
a = list(map(int,input().split()))
x = int(x[1])

print(x[0]x[1]x[2])

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
def main(a,op,b):
  if op=='+':
    return int(a)+int(b)
  elif op=='-':
    return int(a)-int(b)

  
if __init__=='__main__':
  a,op,b=input().split()
  print(main(a,op,b))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,op,b=input().split()
a=int(a)
b=int(b)
if op="+":
  print(a+b)
if op="-":
  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:
A,op,B=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 = list(map(int,input().split()))
m = int(input())

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

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,b=int(input().split())
op = input().split()
if(op == "+"):
    print(a+b)
elif(op == "-"):
    print(a-b)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A, B, C = map(int, input().split())
B = str(B)
print(ABC)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a, op, b = map(str, input().split())
print(eval(f"{a}{op}{b}"))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a, op,  b = map(int, input().split())
if op =="+":
    print(int(a+b))
else:
    print(int(a-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(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(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()
a=int(a)
b=int(b)

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())
t = tuple(map(int,input().split()))
m = int(input())

d = []
for _ in range(m):
  d.append(tuple(map(int,input().split())))

for i,t_i in d:
  print(sum(t)-t[i-1]+t_i)

Submission status: Runtime Error

Solution code:
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
#include <stack>
#include <queue>
#include <numeric>
#include <iomanip>
#include <map>
#include <set>
#include <deque>
#include <utility>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < n; i++)
#define repk(i, k, n) for (int i = k; i < n; i++)
#define MOD 1e9 + 7
#define INF 1e9
#define SENTINEL 2e9
#define PIE 3.14159265358979323

template <class T>
inline bool chmin(T &a, T b){if (a > b){a = b;return true;}return false;}
template <class T>
inline bool chmax(T &a, T b){if (a < b){a = b;return true;}return false;}
template <class T>
inline T GCD(T a, T b){if (b == 0) return a; else return GCD(b, a % b);}
template <class T>
inline T LCM(T a, T b) {return (a * b) / GCD(a, b);}

void ans(bool flag){
    if (flag)
        cout << "Yes" << endl;
    else
        cout << "No" << endl;
}

int main(){
    int a, b;
    string s;
    cin >> a >> s >> b;
    if (s=="+")
        cout << a + b << endl;
        else
            cout << a - b << endl;
}

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
X = list(map(input().split()))
A, B = int(X[0]), int(X[2])
op = X[1]
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=map(str,input().split())
A=int(a)
B=int(b)
if op="+":
  print(A+B)
else:
  print(A-B)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b,c=map(str,input().split())
if b=='-':
  print(int(a)-int(c))
else:
  print(int(a)+int(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:
li = list(map(int,input().split()))
x = int(li[0])
y = int(li[2])

if li[1] = "+" print(x+y) else print(x-y)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys
from collections import deque

mod = 10**9 + 7
n = int(input())
a = deque(sorted(list(map(int, (input().split())))))
if n % 2 == 0:
    for i in range(n//2):
        b = a.popleft()
        c = a.popleft()
        if b != i*2+1 or c != i*2+1:
            print(0)
            sys.exit()
    print(pow(2, n//2, mod))

if n % 2 == 1:
    if a.popleft() != 0:
        print(0)
        sys.exit()
    for i in range(n//2):
        b = a.popleft()
        c = a.popleft()
        if b != (i+1)*2 or c != (i+1)*2:
            print(0)
            sys.exit()
    print(pow(2, n//2, mod))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b = map(int,input().split())
if op == "+":
  print(a+b)
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 if a[1]=='-':
  print(int(a[0])-int(a[2]))

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(int, input().split())
if op == '+':
    print(A+B)
elif op == '-':
    print(A-B)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a, p, b = 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.sort()
ans=1
mod=10**9+7
if N%2==0:
    for k in range(N//2):
        if A[2*k]==2*k+1 and A[2*k+1]==2*k+1:
            ans=ans*2%mod
            continue
        else:
            ans=0
            break
if N%2==1:
    if A[0]==0:
        ans=2
        for k in range(N//2-1):
            if A[2*k+2]==2*k+2 and A[2*k+1]==2*k+2:
                ans=ans*2%mod
                continue
            else:
                ans=0
                break
    else:
        ans=0
if N==1:
    if A[0]==0:
        ans=1
    else:
        ans=0
print(ans)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())
Tlist = [int(N) for N in input().split()]
M = int(input())
PXlist = [[int(i) for i in input().split()]for j in range(M)]
def time_sum():
    s = 0
    for i in range(0,N):
        s = s+Tlist[i]
    return s
def time_cal():
    empty = []
    for i in range(0,M):
        empty.append(time_sum() - Tlist[PXlist[i][0]-1] + PXlist[i][1])
    return empty
for i in time_cal():
    print(i)

Submission status: Runtime Error

Solution code:
N = int(input())
Tlist = [int(N) for N in input().split()]
M = int(input())
PXlist = [[int(i) for i in input().split()]for j in range(M)]
def time_sum():
    s = 0
    for i in range(0,N):
        s = s+Tlist[i]
    return s
def time_cal():
    empty = []
    for i in range(0,M):
        empty.append(time_sum() - Tlist[PXlist[i][0]-1] + PXlist[i][1])
    return empty
for i in time_cal():
    print(i)

Submission status: Runtime Error

Solution code:
N = int(input())
Tlist = [int(N) for N in input().split()]
M = int(input())
PXlist = [[int(i) for i in input().split()]for j in range(M)]
def time_sum():
    s = 0
    for i in range(0,N):
        s = s+Tlist[i]
    return s
def time_cal():
    empty = []
    for i in range(0,M):
        empty.append(time_sum() - Tlist[PXlist[i][0]-1] + PXlist[i][1])
    return empty
print(time_sum)
for i in time_cal():
    print(i)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A,B,C=(int(x) for x in input().split())
if B is "+":
    n = int(A) + int(C)
    print(n)
elif B is "-":
    n = int(A) - int(C)
    print(n)

Submission status: Runtime Error

Solution code:
n=int(input().rstrip())
t=input().rstrip().split()
t=[int(x) for x in t]
m=int(input().rstrip())

for i in range(m):
  data= input().rstrip().split()
  print(sum(t)-t[int(data[0])-1]+int(data[1]))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:

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

Submission status: Runtime Error

Solution code:
import math
n=input()
mod = int(1e9) + 7
a=list(map(int,raw_input().split()))
if(len(a)%2==0 and a.count(0)>0):
    print(0)
elif(len(a)%2!=0 and a.count(0)>1):
    print(0)
else:    
    res=0
    b=set(a)
    if(a.count(0)):
        print(pow(2,len(b)-1,mod))
    else:
        print(pow(2,len(b),mod))

Submission status: Runtime Error

Solution code:
st=input()
print(int(st))
#Stay safe
#IndiaFightsCorona
#FightBack
#StayHome
#StaySafe

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().strip()
if(op=='+'):
    print(int(a)+int(b))
else:
    print(int(a)-int(b))

Submission status: Runtime Error

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

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:
A=int(input())
B=int(input())

print(A+B or A-B)

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int,input().split()))
C = [0]*N
a=0
def line(A,N):
    for i in range(N):
        C[A[i]] += 1
    if C[0] == 1:
        if N % 2==1:
            return pow(2,(N-1)//2)
        else:
            return 0
    for i in range(N):
        if C[i] != 2 and C[i]>=1:
            return 0
        elif C[i]==0:
            continue
    return pow(2,(N-1)//2)
a=line(A,N)
print(a%(pow(10,9)+7))

Submission status: Runtime Error

Solution code:
N = int(input())
T = list(map(int,input().split()))
M = int(input())
grid = []
for i in range(M):
    data = list(map(int,input().split()))
    grid.append(data)
fsum = sum(T)

for i in range(M):
    dsum = 0
    dsum = fsum - T[i] + grid[i][1]
    print(dsum)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b,c=input().split()
if b=="+":
  print(int(a)+int(c))
else b=="-":
  print(int(a)-int(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:
N=int(input())
A=[int(x)for x in input().split()]
B=[]
if N%2==0:
    B= sorted([2*i-1 for i in range(1,N//2+1)]*2)
    if sorted(A)==B:
        ans=(pow(2,N/2))%(10**9+7)
    else:
        ans=0
else:
    B= [0]+sorted([2*i for i in range(1,N//2+1)]*2)
    if sorted(A)==B:
        ans=(pow(2,(N-1)/2))%(10**9+7)
    else:
        ans=0
print(int(ans))

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,c = input()
if b == "+":
  print(int(a)+int(b))
else:
  print(int(a)-int(b))

Submission status: Runtime Error

Solution code:
N=int(input())
A=input().split()
numbers=[int(a) for a in A]
numbers.sort()
kazu=N//2
b=0
n=N-1
list=[]
nlist=[]
if N==1:
    if A==0:
        print(1)
    else:
        print(0)
else:
    if N % 2 == 0:
        for c in range(kazu):
            list.append(n - c * 2)
        nlist = list + list
        nlist.sort()
        if numbers == nlist:
            print((2 ** kazu)%(10**9+7))
        else:
            print(0)
    else:
        for c in range(kazu):
            list.append(n - c * 2)
        nlist = list + list + [0]
        nlist.sort()
        if numbers == nlist:
            print((2 ** kazu)%(10**9+7))
        else:
            print(0)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
print(a+b)

Submission status: Runtime Error

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

li = [0]*((N+1) >> 1)


def mod(b, x, n):
    acc = b
    for i in range(1, x):
        acc = (acc * b) % n
    return int(acc)


for a in A:
    if li[a >> 1] >= 2:
        print(0)
        break
    else:
        li[a >> 1] += 1

if N & 1:
    if li[0] != 1:
        print(0)
    elif li.count(1) > 1:
        print(0)
    else:
        c = li.count(2)
        print(mod(2, c, 10E9-7))
else:
    if li.count(1) > 0:
        print(0)
    else:
        c = li.count(2)
        print(mod(2, c, 10E9-7))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())
S = [input() for i in range(N)]
m_count = 0
m_str = []

for i in range(N):
    if S.count(S[i]) > m_count:
        m_str = [S[i]]
        m_count = S.count(S[i])
    elif S.count(S[i]) == m_count:
        m_str.append(S[i])

m_str = list(set(m_str))
m_str.sort()

print(m_str[i] for i in len(m_str))

Submission status: Runtime Error

Solution code:
import numpy as np
N = int(input())
#time=list(map(int,input().split()))
time=np.array(input().split(),dtype=np.int64)
M = int(input())

p={}
x={}
for i in range(M):
    p[i],x[i] = map(int, input().split())
#print(x[1])

sumT=np.sum(time)
for i in range(M):
    PP = p[i]
#    print(np.sum(time_new))
    print(sumT - time[PP-1] + x[PP-1])

Submission status: Runtime Error

Solution code:
num1 = float(input())
op = input()
num2 = float(input())

if op == "+":
    print(num1 + num2)
elif op == "-":
    print(num1 - num2)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())
t_N = input().split()
list_Time = []
for id in range(n):
    list_Time.append(int(t_N[id]))
sum = sum(list_Time)
m = int(input())
for id in range(m):
    p, x = map(int, input().split())
    answer = sum + x - list_Time[p - 1]
    print(answer)

Submission status: Runtime Error

Solution code:
N=int(input())
T_N=int(input().split())
list_time = []
for i in range(N):
    list_time.append(T_N[i])
#Ti秒の総和を求める
sum=sum(list_time)
print(sum)
M=int(input())
for i in range(M):
    p,x=map(int,input().split())
    #ドリンク飲んだ時と飲まないときの差を元の合計に足す。
    ans=sum+x-list_time[p-1]
    print(ans)

Submission status: Runtime Error

Solution code:
N=int(input())
T_N=int(input().split())
list_time = []
for i in range(N):
    list_time.append(T_N[i])
#Ti秒の総和を求める
sum=sum(list_time)
M=int(input())
for i in range(M):
    p,x=map(int,input().split())
    #ドリンク飲んだ時と飲まないときの差を元の合計に足す。
    ans=sum+x-list_time[p-1]
print(ans)

Submission status: Runtime Error

Solution code:
N=int(input())
T_N=int(input().split())
list_time=[]
for i in range(N):
    list_time.append(T_N[i])
#Ti秒の総和を求める
sum=sum(list_time)
M=int(input())
for i in range(M):
    p,x=map(int,input.split())
    #ドリンク飲んだ時と飲まないときの差を元の合計に足す。
    ans=sum+x-list_time[p-1]
print(ans)

Submission status: Runtime Error

Solution code:
N=int(input())
T_N=int(input().split())
list_time=[]
for i in range(N):
    list_time.append(T_N[i])
#Ti秒の総和を求める
sum=sum(list_time)
M=int(input())
for i in range(M):
    p,x=map(int,input.split())
    #ドリンク飲んだ時と飲まないときの差を元の合計に足す。
    ans=sum+(x-list_time[p-1])
    print(ans)

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, b, c = input().split()

a = int(a)
c = int(c)

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

Submission status: Runtime Error

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

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 = map(int, input().split())
if b == "+":
    print(a + c)
else:
    print(a-c)

Submission status: Runtime Error

Solution code:
x1, op, x2 = input().split()

if op == "+":
  print(x1+x2)
else:
  print(x1-x2)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

if o == "+":
	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 = (i for i in input().split())

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

Submission status: Runtime Error

Solution code:
print(eval(input())

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A,B,C=map(str,input().split())
ans=eval('A' 'B' 'C')
print(ans)

Submission status: Runtime Error

Solution code:
A,B,C=map(str,input().split())
ans=eval(A B C)
print(ans)

Submission status: Runtime Error

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: 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(int,onput().split())

func = lambda x,y:x + y if op =="+" else lambda x,y:x-y

print(func(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(input().split())
if op == '+':
  ans = a + b
else:
  ans = a - b
print(ans)

Submission status: Runtime Error

Solution code:
n=int(input())
numbb=input().split(' ')
numb=[]
for i in numbb:
    numb.append(int(i))
numb=sorted(numb)
#print(numb)
if(n==len(numb)):
    if(n%2!=0):
        temp=[]
        temp.append(0)
        strt=2
        for i in range(0,int(n/2)):
            temp.append(strt)
            temp.append(strt)
            strt+=2
        if(temp==numb):
            #print(temp,numb)
            print(pow(2,len(set(numb))-1)%((10**9)+7))
        else:
            print(0)
    if(n%2==0):
        temp=[]
        strt=1
        for i in range(0,int(n/2)):
            temp.append(strt)
            temp.append(strt)
            strt+=2
        if(temp==numb):
            #print(temp,numb)
            #print(pow(2,len(set(numb))))
            print((pow(2,len(set(numb)))%((10**9)+7)))
        else:
            print(0)

Submission status: Runtime Error

Solution code:
n=int(input())
numbb=input().split(' ')
numb=[]
for i in numbb:
    numb.append(int(i))
numb=sorted(numb)
#print(numb)
if(n==len(numb)):
    if(n%2!=0):
        temp=[]
        temp.append(0)
        strt=2
        for i in range(0,int(n/2)):
            temp.append(strt)
            temp.append(strt)
            strt+=2
        if(temp==numb):
            #print(temp,numb)
            print(((pow(2,len(set(numb))-1)%((10**9)+7))))
        else:
            print(0)
    if(n%2==0):
        temp=[]
        strt=1
        for i in range(0,int(n/2)):
            temp.append(strt)
            temp.append(strt)
            strt+=2
        if(temp==numb):
            #print(temp,numb)
            #print(pow(2,len(set(numb))))
            print(((pow(2,len(set(numb)))%((10**9)+7))))
        else:
            print(0)

Submission status: Runtime Error

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

Submission status: Runtime Error

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