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: Wrong Answer

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: Wrong Answer

Solution code:
s = input()
print(s)

Submission status: Wrong Answer

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:
    answer = 0;

print(answer)

Submission status: Wrong Answer

Solution code:
s=input()
eval(s)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
str=input()

a=int(str[0])
b=int(str[4])

if str[2]=='+':
    print(a+b)

elif str[2]=='-':
    print(a-b)

Submission status: Wrong Answer

Solution code:
s=input();print(int(s[0])+int(s[4])*[-1,1][s[2]=='+'])

Submission status: Wrong Answer

Solution code:
print(exec(input()))

Submission status: Wrong Answer

Solution code:
siki = input()
A = int(siki[0])
B = int(siki[4])

print(A + B if siki[2] == "+" else A - B)

Submission status: Wrong Answer

Solution code:
import math
import string
import collections
from collections import Counter
from collections import deque
from decimal import Decimal
import sys
import fractions


def readints():
    return list(map(int, input().split()))


def nCr(n, r):
    return math.factorial(n)//(math.factorial(n-r)*math.factorial(r))


def has_duplicates2(seq):
    seen = []
    for item in seq:
        if not(item in seen):
            seen.append(item)
    return len(seq) != len(seen)


def divisor(n):
    divisor = []
    for i in range(1, n+1):
        if n % i == 0:
            divisor.append(i)
    return divisor


# coordinates
dx = [-1, -1, -1, 0, 0, 1, 1, 1]
dy = [-1, 0, 1, -1, 1, -1, 0, 1]
s = input()
# for i in range(len(s)):
#    print(i, s[i])
if s[2] == '+':
    x = int(s[0])+int(s[4])
    print(x)
if s[2] == '-':
    y = x = int(s[0])-int(s[4])
    print(y)

Submission status: Wrong Answer

Solution code:
input_string = list(input())
num1 = int(input_string[0])
num2 = int(input_string[4])
operater = input_string[2]

result = 0
if operater == "+":
    result = num1 + num2
elif operater == "-":
    result = num1 - num2

print(result)

Submission status: Wrong Answer

Solution code:
input_string = list(input())
num1 = int(input_string[0])
num2 = int(input_string[4])
operater = input_string[2]

result = 0
if operater == "+":
  result = num1 + num2
elif operater == "-":
  result = num1 - num2

print(result)

Submission status: Wrong Answer

Solution code:
import sys
from io import StringIO
import unittest


def resolve():
    input_string = list(input())
    num1 = int(input_string[0])
    num2 = int(input_string[4])
    operater = input_string[2]
    
    result = 0
    if operater == "+":
        result = num1 + num2
    elif operater == "-":
        result = num1 - num2
    
    print(result)


class TestClass(unittest.TestCase):
    def assertIO(self, input, output):
        stdout, stdin = sys.stdout, sys.stdin
        sys.stdout, sys.stdin = StringIO(), StringIO(input)
        resolve()
        sys.stdout.seek(0)
        out = sys.stdout.read()[:-1]
        sys.stdout, sys.stdin = stdout, stdin
        self.assertEqual(out, output)
    def test_入力例_1(self):
        input = """1 + 2"""
        output = """3"""
        self.assertIO(input, output)
    def test_入力例_2(self):
        input = """5 - 7"""
        output = """-2"""
        self.assertIO(input, output)

if __name__ == "__main__":
    unittest.main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

print(int(a)-int(c))

Submission status: Wrong Answer

Solution code:
x = [str(e) for e in input().split()]
if(x[1] == '+'):
  ans = int(x[0]) + int(x[2])
else:
  ans = int(x[0]) + int(x[2])
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
st=input()
print(st)
#Stay safe
#This was very simple problem
# I didn't thought it will be of two lines

Submission status: Wrong Answer

Solution code:
x=list(input())
a=x[0]
b=x[4]
if (x[2]=='+'):
    print(int(a)+int(b))
elif(x[2]=='-'):
    print(int(a)-int(b))

Submission status: Wrong Answer

Solution code:
s=input()

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

Submission status: Wrong Answer

Solution code:
print(input())

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = input()
l = ["a","b","c","d","e"]
if a in l:
  print('vowel')
else:
  print("consonant")

Submission status: Wrong Answer

Solution code:
A,op,B = [str(i) for i in input().split()]

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

Submission status: Wrong Answer

Solution code:
print(input()%10000)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()
if s[2]== "-":
    print(int(s[0])-int(s[4]))
if s[2]== "+":
    print(int(s[0])+int(s[4]))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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: Wrong Answer

Solution code:
s = input()
print(exec(s))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
print( input() )

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
print input

Submission status: Wrong Answer

Solution code:
eval(input())

Submission status: Wrong Answer

Solution code:
s=input()
a=0
if s[2]=="+":
    a=int(s[0])+int(s[4])
else:
    a=int(s[0])-int(s[4])
print(a)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

#B
def B():
    return

#C
def C():
    return

#D
def D():
    return

#E
def E():
    return

#F
def F():
    return

#G
def G():
    return

#H
def H():
    return

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
math.log2(2)

Submission status: Wrong Answer

Solution code:
s=input();a,b=map(int,[s[0],s[4]])
print(a+b if s[2]=='+' else a-b)

Submission status: Wrong Answer

Solution code:
ans = 0
bs = input().replace(" ","")
s = list(bs)
if s[1] == '+':
    ans = int(s[0])+int(s[2])
elif s[1] == '-':
    ans = int(s[0])-int(s[2])
print(ans)

Submission status: Wrong Answer

Solution code:
ans = 0
bs = input().replace(" ","")
s = list(bs)
if s[1] == '+':
    ans = int(s[0])+int(s[2])
elif s[1] == '-':
    ans = int(s[0])-int(s[2])

Submission status: Wrong Answer

Solution code:
#07:39
ans = 0
bs = input().replace(" ","")
s = list(bs)
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: Wrong Answer

Solution code:
# ABC 050 A - Addition and Subtraction Easy

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

Submission status: Wrong Answer

Solution code:
_input = input()

if _input[2] == "+":
    print(int(_input[0]) + int(_input[4]))
else:
    print(int(_input[0]) - int(_input[4]))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
# Python
user_input = input("Input in format A op B")
print(eval(user_input))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A=list(input())
print(int(A[0])+int(A[4]) if A[2]=='+' else int(A[0])-int(A[4]))

Submission status: Wrong Answer

Solution code:
s=input()
l=[int(i) for i in s if i.isdigit()]
print([sum(l),l[0]-l[1]][s[2]=="-"])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()

s1 = int( s[0] )
s2 = int( s[-1] )

if s.find('+') == -1:
    print( s1 - s2 )
else:
    print( s1 + s2 )

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
eval(raw_input())

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
s = input()
A = int(s[0])
B = int(s[4])
if s[2] == '+':
    print(A+B)
elif s[2] == '-':
    print(A-B)

Submission status: Wrong Answer

Solution code:
# coding=utf-8

import sys
stdin = sys.stdin
def na(): return map(int, stdin.readline().split())
def ns(): return stdin.readline().strip()

def main():
    a,op,b = stdin.readline().split()
    if op == '+':
        print(a+b)
    else:
        print(a-b)
    pass


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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


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

Submission status: Wrong Answer

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

if data[1] in "+":
    print(int(data[0]) + int(data[2]))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
getword = raw_input()
array = list(getword)
if array[2]=="+":
    print int(array[0])+int(array[4])
else:
    print int(array[0])-int(array[4])

Submission status: Wrong Answer

Solution code:
getword = raw_input()
array = list(getword)
if array[1]=="+":
    print int(array[0])+int(array[2])
else:
    print int(array[0])-int(array[2])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
aopb = input().split()
print(aopb)

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

Submission status: Wrong Answer

Solution code:
str = raw_input()
print int(str[0]) + int(str[4]) if str[2] == "+" else int(str[0]) - int(str[4])

Submission status: Wrong Answer

Solution code:
str = raw_input()
print int(str[0]) + int(str[2]) if str[1] == "+" else int(str[0]) - int(str[2])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if op == "+":
    result = a + b
else:
    result = a - b

print(result)

Submission status: Accepted

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

    if op == "+":
        result = a + b
    else:
        result = a - b

    print(result)




if __name__ == "__main__":
    iroha()

Submission status: Accepted

Solution code:
s = list(input().split())
print(eval("".join(s)))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
'''
ABC050 A - Addition and Subtraction Easy
https://atcoder.jp/contests/abc050/tasks/abc050_a
'''
def main():
    a, op, b = input().split()
    a, b = int(a), int(b)

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


main()

Submission status: Accepted

Solution code:
'''
ABC050 A - Addition and Subtraction Easy
https://atcoder.jp/contests/abc050/tasks/abc050_a
'''
def main():
    a, op, b = input().split()
    a, b = int(a), int(b)

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

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
'''
ABC050 A - Addition and Subtraction Easy
https://atcoder.jp/contests/abc050/tasks/abc050_a
'''
a, op, b = input().split()
a, b = int(a), int(b)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
a,op,b=input().split()
if op=="+":
    print(int(a)+int(b))
else:
    print(int(a)-int(b))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
def main():
    s = eval(input())
    print(s)


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    s = input()
    print(eval(s))


if __name__ == "__main__":
    main()

Submission status: Accepted

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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def solve():
    print(eval(input().replace(' ','')))


if __name__ == "__main__":
    solve()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# 050_a
A, op, B = input().split()
A = int(A)
B = int(B)
if (1 <= A & A <= 10 ** 9) & (1 <= B & B <= 10 ** 9) & ((op == '+') | (op == '-')):
    if op == '+':
        result = A + B
    elif op == '-':
        result = A - B
    print(result)

Submission status: Accepted

Solution code:
import sys

readline = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)


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

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
s = input()

if '+' in s:
    index = s.index('+')
    print(int(s[:index])+int(s[index+1:]))
else:
    index = s.index('-')
    print(int(s[:index])-int(s[index+1:]))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print(eval(input()))
"""
import os
import sys
import random
import numpy as np
import scipy.stats as stats
import matplotlib as mpl;mpl.use('TkAgg')
import matplotlib.pyplot as plt

mpl.rcParams['axes.xmargin'] = 0
mpl.rcParams['axes.ymargin'] = 0
plt.rcParams['figure.figsize'] = (14, 7)


class Bingo:
    # 各変数の初期化
    def __init__(self):
        self.li = []  # ビンゴカードに配置する数字
        self.bingo = [[0 for i in range(5)] for j in range(5)]  # ビンゴカード(5*5の2次元配列)
        self.bingo_state = [[0 for i in range(5)] for j in range(5)]  # ビンゴカードの状態(5*5の2次元配列)
        self.lot = []  # 抽選された数字を保持
        self.num = list(range(1, 76, 1))  # 1-75の数字が入ったリスト
        self.counter = 0  # 穴の開いた個数をカウント
        self.latest_i = 0  # 最新の穴のy座標
        self.latest_j = 0  # 最新の穴のx座標
        self.flag = 0  # ビンゴのやつ

    # ビンゴカードに配置する数字を決定
    def __decision(self):
        while len(self.li) < 25:  # 数字が25個になるまで
            rnd = random.randint(1, 75)  # 1～75の乱数を生成
            if self.li.count(rnd) == 0:  # 生成された乱数がlistに存在しなければ追加
                self.li.append(rnd)
            if len([j for j in self.li if j <= 15 and not j <= 0]) > 5 \
                    or len([j for j in self.li if j <= 30 and not j <= 15]) > 5 \
                    or len([j for j in self.li if j <= 45 and not j <= 30]) > 5 \
                    or len([j for j in self.li if j <= 60 and not j <= 45]) > 5 \
                    or len([j for j in self.li if j <= 75 and not j <= 60]) > 5:
                self.li.remove(rnd)
        self.li.sort()

    # ビンゴカード(2次元配列)に数字を配置
    def set(self):
        self.__decision()
        index = 0
        for i in range(5):
            for j in range(5):
                if i == 2 and j == 2:
                    self.bingo[j][i] = 'free'
                    index += 1
                else:
                    self.bingo[j][i] = str(self.li[index])
                    index += 1
        self.bingo_state[2][2] = 1
        self.li.pop(12)

    # 抽選
    def __lottery(self):
        rnd = self.num[random.randint(0, len(self.num) - 1)]
        self.num.remove(rnd)
        self.lot.append(rnd)

    # 判定
    def __judge(self):
        # 抽選数字の有無の判定
        self.__lottery()
        number = self.lot[-1]
        if self.li.count(number) == 1:
            for i in range(5):
                for j in range(5):
                    if self.bingo[i][j] == str(number):
                        self.bingo_state[i][j] = 1
                        self.counter += 1
                        self.latest_i = i
                        self.latest_j = j
                        break
                else:
                    continue
                break
            if self.counter >= 4:
                # ビンゴの有無の判定

                # 縦
                for i in range(5):
                    if self.bingo_state[i][self.latest_j] == 0:
                        break
                    elif i == 4:
                        self.flag = 1

                # 横
                if self.flag == 0:
                    for j in range(5):
                        if self.bingo_state[self.latest_i][j] == 0:
                            break
                        elif j == 4:
                            self.flag = 1

                # 斜め
                if self.flag == 0:
                    if self.latest_i == self.latest_j:
                        for i in range(5):
                            if self.bingo_state[i][i] == 0:
                                break
                            elif i == 4:
                                self.flag = 1
                    elif self.latest_i + self.latest_j == 4:
                        ii = 0
                        jj = 4
                        for _ in range(5):
                            if self.bingo_state[ii][jj] == 0:
                                break
                            elif ii == 4 and jj == 0:
                                self.flag = 1
                            ii += 1
                            jj -= 1

    # ビンゴにかかった回数を返すよ
    def get(self):
        while self.flag == 0:
            self.__judge()
        return len(self.lot)


def display(result):
    print('total=' + str(len(result)))
    print('max=' + str(np.max(result)))
    print('min=' + str(np.min(result)))
    print('average=' + str(np.mean(result)))
    print('median=' + str(np.median(result)))
    print('mode=' + str(stats.mode(result)))


def make_fig(result):
    fig = plt.figure()
    plt.title('BINGO', fontsize=20)
    plt.grid(True)
    plt.xticks(list(range(1, 75, 2)))
    plt.hist(result, bins=75, range=(1, 75), alpha=0.8, color='c')
    # plt.show()
    fig.savefig('hist.png')


def main():
    args = sys.argv  # コマンドライン引数
    times = int(args[1])
    result = np.empty(0)

    for a in range(1, times + 1):
        if times >= 100:
            if a % int(times / 100) == 0:
                print(str(int(a * 100 / times)) + '%')
        bingo = Bingo()
        bingo.set()
        result = np.append(result, bingo.get())

    result.sort()
    make_fig(result)
    display(result)


if __name__ == '__main__':
    main()
"""

Submission status: Accepted

Solution code:
# A - Addition and Subtraction Easy
# https://atcoder.jp/contests/abc050/tasks/abc050_a

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

result = eval(a + op + b)

print(int(result))

Submission status: Accepted

Solution code:
# 数値と符号の取得
A,op,B = map(str,input().split())

# 計算して出力
calc = eval(A + op + B)
print(int(calc))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# A op Bという式の値を計算

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

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

Submission status: Accepted

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


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

else:
  print(int(a[0])-int(a[2]))

Submission status: Accepted

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

Submission status: Accepted

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

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

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
def calculate(a, b, op):
    if op == '+':
        return a + b
    else:
        return a - b


lst = list(map(str, input().split()))
print(calculate(int(lst[0]), int(lst[2]), lst[1]))