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:
#07:40
ans = 0
s = input().replace(" ","")
listS = [*s]
#fore = int(a)
#back = int(c)
if s[1] == '+':
    ans = int(s[0])+int(s[2])
elif s[1] == '-':
    ans = int(s[0])-int(s[2])
elif s[1] == '*':
    ans = int(s[0])*int(s[2])
elif s[1] == '/':
    ans = int(s[0])/int(s[2])
print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys



argv=sys.argv

if argv[2] == "+":
    print(int(argv[1]) + int(argv[3]))
elif argv[2] =="-":
    print(int(argv[1]) - int(argv[3]))

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:
str = input().split()

if str[1] == "+":
  print str[0]+str[2]
else:
  print str[0]-str[2]

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:
input()
t = list(map(int,input().split()))
m = int(input())
for i in range(m):
    p,x = map(int,input().split())
    print(sum(t)-t[p-1]+x)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
print(eval(input))

Submission status: Runtime Error

Solution code:
import sys
s = sys.stdin.readline()
print eval(s)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a, op, b =[i for i in input()]
if op == "+":
  print(int(a) + int(b))
else:
  print(int(a) - int(b))

Submission status: Runtime Error

Solution code:
n = int(input())
a = list(map(int, input().split()))
t = [a.count(i) for i in range(n)]
for i in range(n//2):
  if t[i*2+n%2] != 0 or t[i*2+1+n%2] != 2 or t[0] > 1:
    print(0)
    exit()
print(2**(n//2))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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))

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 = [int(i) for i in 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())
s="{}{}{}".format(a,b,c)
print(int(s))

Submission status: Runtime Error

Solution code:
n = int(input())
a = [int(x) for x in input().split()]
m = int(input())
for _ in range(m):
  t = a
  b,c = [int(x) for x in input().split()]
  t[b-1] = c
  print(sum(a))

Submission status: Runtime Error

Solution code:
n = int(input())
a = [int(input()) for _ in range(n)]
m = int(input())
for _ in range(m):
  b,c = [int(x) for x in input.split()]
  a[b-1] = c
  print(sum(a))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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 == '+':
    result = a + b
else op == '-':
    result = a - b 
    
print("{}".format(result))

Submission status: Runtime Error

Solution code:
a,op,b = map(str, input().split())
if op == '+':
    result = a + b
else op == '-':
    result = a - b 
    
print("{}".format(result))

Submission status: Runtime Error

Solution code:
S=input().split(“ “)
A=int(S[0])
B=int(S[2])
C=S[1]
if S[1]==“+”
    print(A+B)
if S[1]==“-”
    print(A-B)

Submission status: Runtime Error

Solution code:
S=input().split(“ “)
A=int(S[0])
B=int(S[2])
C=S[1]
if S[1]=“+”
    print(A+B)
if S[1]=“-”
    print(A-B)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
#include <iostream>
#include <vector>
#include <cstdio>
#include <string>
#include <algorithm>
using namespace std;

int main()
{
  int a, b;
  char op;
  cin >> a >> op >> b;
  if (op == '+') {
    //    printf("%d\n", a+b);
    cout << a+b << "\n";
  }else {
    cout << a-b << "\n";
    //printf("%d\n", a-b);
  }
  return 0;
}

Submission status: Runtime Error

Solution code:
data = input().split()
A = int(data[0])
B = int(data[2])
if op == '+':
	S =  A + B
else:
	S = A - B
print(S)

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:
input = input().split(" ")
output = 0;
if input[1] == "+":
    output = input[0] + input[2]
else:
    output = input[0] - input[2]

print(output)

Submission status: Runtime Error

Solution code:
user_input = input("n a")
input_sep = user_input.split()
n = int(input_sep[0])
a = int(input_sep[1])
sum_out = 0
for num in range(0, n+1):
sum_out += num*pow(a, num)

print(str(sum_out))

Submission status: Runtime Error

Solution code:
input = raw_input().split(" ")
output = 0;
if input[1] == "+":
    output = input[0] + input[2]
else:
    output = input[0] - input[2]

print(output)

Submission status: Runtime Error

Solution code:
input = raw_input().split(" ")
output = 0;
if input[1] == "+":
    output = input[0] + input[2]
else
    output = input[0] - input[2]

print(output)

Submission status: Runtime Error

Solution code:
# Python
user_input = input("Input in format A op B")
input_sep = user_input.split()
input_a = input_sep[0]
operator = input_sep[1]
input_b = input_sep[2]

if operator is '+':
    print(int(input_a + input_b))
elif operator is '-':
    print(int(input_a - input_b))

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
# 入力
A, op, B = input().split()
if op == '+':
    print(A + B)
else:
    print(A - B)

Submission status: Runtime Error

Solution code:
#include <bits/stdc++.h>
typedef long long ll;

int main(int argc, char const *argv[]) {
    ll a, b;
    char op;
    std::cin >> a >> op >> b;
    if (op == '+') {
        std::cout << a + b << '\n';
    } else {
        std::cout << a - b << '\n';
    }
    return 0;
}

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())
 
t = [input() for i in range(N)]
 
M = int(input())
 
a = []
for i in range(M):
    a.append(map(int, raw_input().split()))       
 
cal = sum(t)
 
for j in range(M):
    print(cal - t[a[j][0] - 1] + a[j][1])

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,op,b = map(string, 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(string, 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())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
def main():
    A = input()
    op = input()
    B = input()
    x = A + op + B
#    print(A + op + B)
    y = eval(x)
    print(y)

if __name__ == '__main__':
    main()

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:
#include <bits/stdc++.h>

using namespace std;

int main()
{
    int a,b;
    char c;
    cin >> a >> c >> b;

    if(c == '+')
        cout << a+b << endl;
    else
        cout << a-b << endl;
}

Submission status: Runtime Error

Solution code:
#include <bits/stdc++.h>

using namespace std;

int main()
{
    int a,b;
    char c;
    cin >> a >> b >> c;

    if(c == '+')
        cout << a+b << endl;
    else
        cout << a-b << endl;
}

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
MOD = int(1e9) + 7
N = int(input())

dp = [1,0,0]
for i in range(64,-1,-1):
  ndp = [0,0,0]
  for d in range(3):
    nd = d*2 + (N>>>i&1)
    ndp[min(2,nd)] += dp[d]
    if nd >= 1: ndp[min(2,nd-1)] += dp[d]
    if nd >= 2: ndp[min(2,nd-2)] += dp[d]
  dp = ndp
  
print(sum(dp) % MOD)

Submission status: Runtime Error

Solution code:
N = int(input())
number = input().split(" ")
if N%2 == 0:
    count = 0
    for i in range(int(N/2)):
        if number.count(str(2*i +1)) == 2:
            count += 0
        else:
            count += 1
    if count != 0:
        print(0)
    else:
        print(2**(int(N/2)))
else:
    count = 0
    if "0" not in number:
        print(0)
    else:
        for i in range(int((N-1)/2)):
            if number.count(str(2*i+2)) == 2:
                count += 0
            else:
                count += 1
        if count != 0:
            print(0)
        else:
            print(2**(int((N-1)/2)))

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
op = input()
a = input()
b = input()
if op=='+'
 print(a + b)
if op== '-'
 print(a-b)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = input().split()
if s[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(c))

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
s,op,s2 = map(str,input().split(" "))

if op == '+':
  print(s+s2)

else:
  print(s-s2)

Submission status: Runtime Error

Solution code:
s,op,s2 = map(int,input().split(" "))

if op == '+':
  print(s+s2)

else:
  print(s-s2)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,op,b=map(str,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(a+b)
else:
  print(a-b)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import copy
N = int(input())
t = [int(x) for x in input().split()]
p = []
for _ in range(int(input())):
	p.append([int(x) for x in input().split()])

result = []
ori_t = copy.deepcopy(t)
for i,j in zip(t,p):
	t = copy.deepcopy(ori_t)
	t[j[0]-1] = j[1]
	result.append(sum(t))

print(result)

Submission status: Runtime Error

Solution code:
if __name__ == "__main__":
    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, op, B = input().split()
if op == "+" :
   input (int(A) + int(B))
if op == "-" :
   input (int(A) - int(B))
input()

Submission status: Runtime Error

Solution code:
import copy
n = int(input())
a = list(map(int, input().split()))
a.sort()
flag = True
if n % 2 == 1:
    if a[0] != 0:
        print(0)
    else:
        ans = [i for i in range(2, n, 2) for j in range(2)]
        ans.insert(0, 0)
        if ans != a:
            print(0)
            flag = False
    if flag:
        print((2**((n - 1) // 2)) % (1e9 + 7))

else:
    ans = [i for i in range(1, n, 2) for j in range(2)]
    if ans != a:
        print(0)
        flag = False
    if flag:
        print((2**(n // 2)) % (1e9 + 7))

Submission status: Runtime Error

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

def is_satisfied(s):
    ln = len(s)
    check = [s.count(i) == 2 for i in range(ln - 1, 1, -2)]
    if ln % 2 == 0:
        check.append(s.count(1) == 2)
    else:
        check.append(s.count(0) == 1)

    return all(check)


ans = 2 ** (n // 2) if is_satisfied(a) else 0
print(ans)

Submission status: Runtime Error

Solution code:
N=int(input())
A=[int(n) for n in input().split()]

div=10**9+7

A.sort()

if N % 2 == 0:
    for i in range(int(N/2)):
        if A[2*i] != 2*i+1 or A[2*i+1] != 2*i+1:
            print (0)
            sys.exit() 
    print(2**int(N/2) % div)
if N % 2 == 1:
    if A[0]!=0:
        print(0)
        sys.exit()
    for i in range(int((N-1)/2)):
        if A[2*i+1] !=2*i+2  or A[2*i+2]!= 2*i+2:
            print(0)
            sys.exit()
    print(2**int((N-1)/2) % div)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
_ = raw_input()
tests = [int(test) for test in raw_input().split(" ")]
total_time = sum(tests)
drinks = raw_input()
for _ in range(drinks):
    i = raw_input().split(" ")
    no, time = i[0], i[1]
    print total_time - (tests[no] - time)

Submission status: Runtime Error

Solution code:
#!/usr/bin/env python
# -*- coding:utf-8 -*-
import sys


def main():
    count = int(raw_input())
    li = [int(n) for n in raw_input().split()]
    if count%2 == 1: # 奇数
        if li.count(0) != 1:
            print 0
            return
        for i in range(count)[2::2]:
            if li.count(i) != 2:
                print 0
                return
        print 2**(count/2)
    else: # 偶数
        for i in range(count)[1::2]:
            if li.count(i) != 2:
                print 0
                return
        print 2**(count/2)



if __name__ == "__main__":
    main()

Submission status: Runtime Error

Solution code:
#!/usr/bin/env python
# -*- coding:utf-8 -*-
import sys

def read_data():
    lines = [line.rstrip() for line in sys.stdin]
    ns = [int(n) for n in lines[1].split()]
    ms = []
    for line in lines[3:]:
        num, sec = line.split()
        ms.append((int(num)-1, int(sec)))
    return ns, ms

def main():
    ns, ms = read_data()
    for (drink_num, drink_sec) in ms:
        result = sum(ns) - ns[drink_num] + drink_sec
        print result


if __name__ == "__main__":
    main()

Submission status: Runtime Error

Solution code:
#!/usr/bin/env python
# -*- coding:utf-8 -*-
import sys

def read_data():
    lines = [line.rstrip() for line in sys.stdin]
    ns = [int(n) for n in lines[1].split()]
    ms = [(int(line.split()[0]), int(line.split()[1])) for line in lines[3:]]
    return ns, ms

def main():
    ns, ms = read_data()
    for (drink_num, drink_sec) in ms:
        result = sum(ns) - ns[drink_num-1] + drink_sec
        print result


if __name__ == "__main__":
    main()

Submission status: Runtime Error

Solution code:
#input
T = []
N = int(raw_input())
T = raw_input().split()
M = int(raw_input())
PX = []
X = 0
T1 = []

#input matrix
for i in range(M):
    PX.append(map(int,raw_input().split()))


for j in range(M):
    #new time
    T1 = T[:]
    PJ = PX[j][0]
    XJ = PX[j][1]
    a = int(PJ)
    b = int(XJ)
    T1[a-1] = b

    #plus each time
    X = 0
    for k in range(N):
            X += int(T1[k])
    print X

Submission status: Runtime Error

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

OP = input(plus_minus)

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

Submission status: Runtime Error

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

OP = input(plus_minus)

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

Submission status: Runtime Error

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

op = + or -

print(int(A) + op + int(B))

Submission status: Runtime Error

Solution code:
import sys

def main():
    arg = sys.argv[1:]
    a = int(arg[0])
    b = int(arg[2])
    op = arg[1]
    #if a < 1 or b > 10 **9:
    #    return 0

    if op == "+":
        return a + b
    elif op == "-":
        return a - b
    #else:
    #    return 0

print main()

Submission status: Runtime Error

Solution code:
import sys

def main():
    arg = sys.argv[1:]
    a = int(arg[0])
    b = int(arg[2])
    op = arg[1]
    if a < 1 or b > 10 **9:
        return 0

    if op == "+":
        return a + b
    elif op == "-":
        return a - b
    else:
        return 0

print main()

Submission status: Runtime Error

Solution code:
import sys

def main():
    arg = sys.argv[1:]
    if arg[1] == "+":
        return int(arg[0]) + int(arg[2])
    elif arg[1] == "-":
        return int(arg[0]) - int(arg[2])
    else:
        return 0

print main()

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-

N=int(input())
T=input().split()
X=[]
for i in range(int(input())):
    X.append(input().split()[1])
    
T=list(map(int,T))
X=list(map(int,X))
for y in range(len(X)):
    T_tmp = T
    X_tmp = X
    T_tmp[y] = X_tmp[y]
    print(sum(T_tmp))

Submission status: Runtime Error

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-

N=int(input())
T=input().split()
X=[]
for i in range(int(input())):
    X.append(input().split()[1])
    
T=list(map(int,T))
X=list(map(int,X))
for y in range(len(X)):
    T[y]=X[y]
    print(sum(T))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

op = "+" or "-"

print(A op B)

Submission status: Runtime Error

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



print(A + B)
print(A - B)

Submission status: Runtime Error

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

print(a + b)
print(a - b)

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
op = "+" or "-"

print(a + op + b)

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
op = + or -

print(a op b)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
data = input().split() # "1 2 3"と入力
 
if data[1]) = "+":
    print int(data[0] + data[2])
else
    print int(data[0] - data[2])

Submission status: Runtime Error

Solution code:
data = input().split() # "1 2 3"と入力

if data[1]) = "+":
    print data[0] + data[2]
else
    print data[0] - data[2]

Submission status: Runtime Error

Solution code:
#ABC050B

n=int(raw_input())
t=map(int,raw_input().split())
m=int(raw_input())
v=[]
for i in xrange(m):
 u=t[:]
 p,x=map(int,raw_input().split())
 u[p-1]=x
 v.append(sum(u))
for i in xrange(m):
 print v[i]

Submission status: Runtime Error

Solution code:
n=int(raw_input())
t=map(int,raw_input().split())
m=int(raw_input())
xt=[map(int,raw_input().split()) for _ in xrange(m)]
ans=[0]*m
for i in xrange(m):
    tmp=t
    tmp[xt[i][0]-1]=xt[i][1]
    for j in xrange(n):
        ans[i]+=tmp[j]
for j in xrange(n):
    print(ans[j])

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int, input().split()))
M = N//2
if N % 2 == 1 and A.count(0) == 1 and all(A.count(i*2+2)==2 for i in range(M)):
    print((2 ** M) % (10**9+7))
elif N % 2 == 0 and all(A.count(i*2+1)==2 for i in range(M)):
    print((2 ** M) % (10**9+7))
else:
    print(0)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys
sys.setrecursionlimit(10000)

N = int(input())
A = list(map(int,input().split()))
error = 0

if N%2 == 1:
      if A.count(0) != 1:
            print(0)
      elif sum(A) != (N+1)*(N-1)/2:
            print(0)
      else:
            print(int((2**((N-1)/2))%(10**9+7)))
      
else:
      if A.count(0) != 0:
            print(0)
      elif sum(A) != N**2/2:
            print(0)
      else:
            print(int((2**(N/2))%(10**9+7)))

Submission status: Runtime Error

Solution code:
import numpy as np
import collections
N=int(raw_input())
A=map(int, raw_input().split())
count_A=collections.Counter(A).most_common(1)

cnt = 0
if N%2 == 0:
    if A.count(0) >= 1:
        print 0
        cnt = 1
    elif count_A [0][1] != 2:
        print 0
        cnt = 1
    if cnt == 0:
        print 2**(N/2)%(10**9+7)
else:
    if A.count(0) >= 2:
        print 0
        cnt = 1
    elif count_A[0][1] != 2:
        print 0
        cnt = 1
    if cnt == 0:
        print 2**(N/2)%(10**9+7)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = input()
ti = input().split()
sum_ti = sum(map(int, ti))

m = input()
for m in range(int(m)):
    px = input().split()
    sum_p = sum_ti - int(ti[int(px[0])-1]) + int(px[1])
    print(sum_p)

Submission status: Runtime Error

Solution code:

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

A_ = sorted(A)

if len(A_) == 1:
    if A_[0] == 0:
        print(1)
    else:
        print(0)

else:

    if len(A_) % 2 == 0:
        if A_[0] != 0 or A_[1] != 0:
            print(0)
            exit()

    else:
        if A_[0] != 0 or A_[1] == 0:
            print(0)
            exit()





    for i in range(len(A_) // 2):
        if A_[2*i] != A_[2*i+1]:
            print(0)
            exit()


    ans_ = 2 ** (N // 2)
    ans = ans_ % (10**9 + 7)
    print(ans)

Submission status: Runtime Error

Solution code:
aopb = input().split('+'or'-')

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

Submission status: Runtime Error

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