Problem:


Score : 100 points

Problem Statement

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

Constraints

1≦A,B≦10^9

op is either + or -.

Input

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

A op B

Output

Evaluate the formula and print the result.

Sample Input 1

1 + 2

Sample Output 1

3

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

Sample Input 2

5 - 7

Sample Output 2

-2



Sample input:
1 + 2


Sample output:
3

Submission status: Accepted

Solution code:
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:
c = input().split(" ")

A = int(c[0])
op = c[1]
B = int(c[2])

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
x,y,z = map(str, input().split())

if y == "+":
    a = int(x)+int(z)
else:
    a = int(x)-int(z)
print (a)

Submission status: Accepted

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



def main():
    F = input().split()

    A  = int(F[0])
    OP = F[1]
    B  = int(F[2])

    if OP == "+":
        ans = A + B
    elif OP == "-":
        ans = A - B
    else:
        assert False

    print(ans)

if __name__ == "__main__": main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Wed Dec 20 17:32:21 2017

"""

iList = input().split()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(eval(A + op + B))

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n1, op, n2 = input().split()
res = 0
if op == "+":
    res = int(n1) + int(n2)
else:
    res = int(n1) - int(n2)

print(res)

Submission status: Accepted

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

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

Submission status: Accepted

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


solve()

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:
from sys import stdin, stdout
def readLine_str_list():return list(map(str, stdin.readline().split()))
def main():
    s = readLine_str_list()
    if s[1]=="+":
        print(int(s[0]) + int(s[2]))
    else:
        print(int(s[0]) - int(s[2]))

if __name__ == "__main__":
    main()

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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: 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=[x for x in input().split()]
if op=="+":
    print(int(a)+int(b))
else:
    print(int(a)-int(b))

Submission status: Accepted

Solution code:
a = raw_input().strip().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,o,B=input().split()
A,B=int(A),int(B)
if o=="+":print(A+B)
else:print(A-B)

Submission status: Accepted

Solution code:


a = input().split()

aa = int(a[0])
bb = int(a[2])

if a[1] == "+":
    print(aa + bb)
else:
    print(aa - bb)

Submission status: Accepted

Solution code:
def inint(): return int(input())
def inlint(): return list(map(int, input().split()))
def infloat(): return float(input())
def inlffloat(): return list(map(float, input().split()))
def inl(): return list(input())
def putlint(): return "".join(list(map(str, ans)))

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

Submission status: Accepted

Solution code:
import sys

# sys.stdin = open('a1.in')


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


def read_str_list():
    return input().split()


def read_int():
    return int(input())


def read_str():
    return input()


def main():
    a, op, b = read_str_list()
    res = 0
    if op == '+':
        res = int(a) + int(b)
    if op == '-':
        res = int(a) - int(b)
    print(res)


main()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
from collections import defaultdict


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:
s = input()
x = s.split()
A = int(x[0])
op = x[1]
B = int(x[2])
if op == '+':
    print(A + B)
elif op == '-':
    print(A - B)

Submission status: Accepted

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

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

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

else:
    print(a-c)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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 ri(): return int(input())
def rli(): return list(map(int, input().split()))
def ris(): return list(input())
def pli(): return "".join(list(map(str, ans)))

op = "+ -".split()
a,o,b = list(input().split())
ans = int(a) + int(b) if(o == op[0]) else int(a) - int(b)
print(ans)

Submission status: Accepted

Solution code:
hoge = input().split()
if hoge[1] == '+':
    print(int(hoge[0]) + int(hoge[2]))
elif hoge[1] == '-':
    print(int(hoge[0]) - int(hoge[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:
l = input().split()
print(int(l[0]) + int(l[2]) if l[1] == '+' else int(l[0]) - int(l[2]))

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

s1 = int( ss[0] )
s2 = int( ss[2] )

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
a = 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:
chars = list(input().split())

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

import os
import sys

class Main(object):

    def __init__(self):
        pass

    def some_method(self):
        a, op, b = input().split()
        a = int(a)
        b = int(b)
        if op == '+':
            print(a + b)
        else:
            print(a - b)

        return None

if __name__ == '__main__':
    m = Main()
    m.some_method()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = map(str,raw_input().split())
#a = raw_input()

b = int(a[0])
c = int(a[2])
op = a[1]

if op == "+":
        print b + c
else:
        print b - c

Submission status: Accepted

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

a = int(n[0])
op = n[1]
b = int(n[2])

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
inFomula = raw_input()

listFomula = inFomula.split()

leftNum = listFomula[0]
rightNum = listFomula[2]
op = listFomula[1]

result = 0

if op == "+":
    result = int(leftNum) + int(rightNum)
elif op == "-":
    result = int(leftNum) - int(rightNum)

print result

Submission status: Accepted

Solution code:
a,b,c = [i for i in input().split()]
print(int(a) + int(c) * (1 if b =='+' else -1) )

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
print eval(raw_input())

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
info = raw_input()
num_1 = int(info.split(" ")[0])
op = info.split(" ")[1]
num_2 = int(info.split(" ")[2])

if op == "+":
    print num_1 + num_2
else:
    print num_1 - num_2

Submission status: Accepted

Solution code:
# coding: utf-8


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:
# -*- coding: utf-8 -*-
"""
Created on Wed Feb 22 16:06:57 2017

@author: 0048005387
"""

strA, op, strB = map(str, raw_input().split())
A = int(strA)
B = int(strB)

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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:
# -*- coding:utf-8 -*-
expression = input().split()
if expression[1] == "+":
    print(int(expression[0]) + int(expression[2]))
else:
    print(int(expression[0]) - int(expression[2]))

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if op == '+':
    print(x+y)
else:
    print(x-y)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print eval(raw_input())
# print eval(raw_input())

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

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

Submission status: Accepted

Solution code:
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: Accepted

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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
def execute(op, l, r):
    if op == '+':
        return l + r
    else:
        return l - r

line = input()
terms = line.split(' ')
z = execute(terms[1], int(terms[0]), int(terms[2]))
print(z)

Submission status: Accepted

Solution code:
l = raw_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:
input_line=input().split(" ")
if input_line[1]=="+":
    print(int(input_line[0])+int(input_line[2]))
else :
    print(int(input_line[0])-int(input_line[2]))

Submission status: Accepted

Solution code:

IN = list(input().strip().split())
A = int(IN[0])
B = int(IN[2])
op = IN[1]
if op=='+':
	print(A+B)
if op=='-':
	print(A-B)

Submission status: Accepted

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

Submission status: Accepted

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

def main():
    a, op, b = raw_input().split()
    if op == '+':
        result = int(a) + int(b)
    else:
        result = int(a) - int(b)
    print result


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
DATA = []
DATA = raw_input().split()
A = int(DATA[0])
op = str(DATA[1])
B = int(DATA[2])

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

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

Submission status: Accepted

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


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

Submission status: Accepted

Solution code:
import sys

def main():
    arg = raw_input().split(" ")
    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: Accepted

Solution code:
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time

sys.setrecursionlimit(10**7)
inf = 10**20
mod = 10**9 + 7

def LI(): return list(map(int, input().split()))
def II(): return int(input())
def LS(): return input().split()
def S(): return input()


def main():
    s = S()
    return eval(s)

print(main())

Submission status: Accepted

Solution code:
s = input()

A = int(s.split()[0])
B = int(s.split()[-1])
operator = s.split()[1]
if operator == '+':
    print(A+B)
elif operator == '-':
    print(A-B)
else:
    print('error')

Submission status: Accepted

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

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

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

print(result)

Submission status: Accepted

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

print(eval(input()))

Submission status: Accepted

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

i = input().split()
if i[1] == '+':
    print(int(i[0])+int(i[2]))
if i[1] == '-':
    print(int(i[0])-int(i[2]))

Submission status: Accepted

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

A, op, B = input().split()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
ss = input().split()
x,y = int(ss[0]), int(ss[2])
if ss[1] == '+':
    res = x+y
else:
    res = x-y
print(res)

Submission status: Accepted

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

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

Submission status: Accepted

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# problem A
print(eval(input()))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#ABC050A

res=raw_input()
res=res.replace(' ','')
print eval(res)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin
print eval(stdin.readline().strip())

Submission status: Accepted

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: Accepted

Solution code:
s = raw_input().split(' ')
a = []
op = []
for i in xrange(3):
    if i%2 == 0:
        a.append(int(s[i]))
    else:
        if s[i]=='-':
            op.append(-1)
        else:
            op.append(1)
print a[0]+a[1]*op[0]

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
array = map(str, raw_input().split())
# print array
if array[1]=="+":
    print int(array[0])+int(array[2])
else:
    print int(array[0])-int(array[2])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# 入力受け取り
A, op, B = input().split()
A, B = int(A), int(B)

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

Submission status: Accepted

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

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

op = line[1]

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

Submission status: Accepted

Solution code:
# coding:utf-8

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
m,op,n=input().split()

if op=='+' : print(int(m)+int(n))
else : print(int(m)-int(n))

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
s=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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
str = raw_input().split()
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))
elif op == "-":
    print(int(a)-int(b))

Submission status: Accepted

Solution code:
#!/usr/bin/python

import sys

def main(argv):
    for line in sys.stdin:
        a, op, b = line.strip().split()
        a = int(a)
        b = int(b)
        if op == "+":
            print a + b
        else:
            print a - b

if __name__ == "__main__":
    main(sys.argv)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = raw_input()

a = s.find('+')
ok = 0
if a == -1:
	a = s.find('-')
	ok = 1

n1 = int(s[:(a - 1)])
n2 = int(s[(a + 1):])

if ok == 0:
	print n1 + n2
else:
	print n1 - n2

Submission status: Accepted

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

Submission status: Accepted

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

if tmp[1]=='+':
    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=raw_input().split()
A=int(A)
B=int(B)
if op=="+":
    print A+B
else:
    print A-B

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding:utf-8
import math
import string
import time
import fractions

n = raw_input().split()

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

Submission status: Accepted

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

a = int(line[0])
op = line[1]
b = int(line[2])

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

Submission status: Accepted

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

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

Submission status: Accepted

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

    
print(ret)

Submission status: Accepted

Solution code:


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

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

Submission status: Accepted

Solution code:
print input()

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

    print(result)

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:
        result = a - b

    print(result

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
print(eval(input())

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
let [a, op, b] = require("fs").readFileSync("/dev/stdin", "utf8").split(" ");
[a, b] = [a, b].map(Number);
console.log(op == "+" ? a + b : a - b);

Submission status: Runtime Error

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

print(int(a)int(o)int(b))

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

# 計算結果を出力
A = int(A)
op = sign(op)
B = int(B)
calc = int(A op B)
print(calc)

Submission status: Runtime Error

Solution code:
A, op, B = map(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 = int(input())
op = input()
B = int(input())

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

Submission status: Runtime Error

Solution code:
# 入力
A = int(input())
op = input()
B = int(input())

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

print(a "op" b)

Submission status: Runtime Error

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

Submission status: Runtime Error

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


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

# 出力
print(answer)