Write a program to obtain 2 numbers $($ $A$ $and$ $B$ $)$ and an arithmetic operator $(C)$ and then design a $calculator$ depending upon the operator entered by the user.
So for example if C="+", you have to sum the two numbers.
If C="-", you have to subtract the two numbers.
If C=" * ", you have to print the product.
If C=" / ", you have to divide the two numbers.

-----Input:-----
- First line will contain the first number $A$.
- Second line will contain the second number $B$.
- Third line will contain the operator $C$, that is to be performed on A and B.

-----Output:-----
Output a single line containing the answer, obtained by, performing the operator on the numbers. Your output will be considered to be correct if the difference between your output and the actual answer is not more than $10^{-6}$.

-----Constraints-----
- $-1000 \leq A \leq 1000$
- $-1000 \leq B \leq 1000$ $and$ $B \neq 0$
- $C$ $can$ $only$ $be$ $one$ $of$ $these$ $4$ $operators$ {" + ", " - ", " * ", " / "}

-----Sample Input:-----
8
2
/

-----Sample Output:-----
4.0

-----Sample Input:-----
5
3
+

-----Sample Output:-----
8

Difficulty: EASY

Solutions:
a = int(input())
b = int(input())
c = input()
if c == '+':
	print(a + b)
elif c == '-':
	print(a - b)
elif c == '*':
	print(a * b)
elif c == '/':
	print(a / b)


x = int(input())
y = int(input())
c = str(input())
if c == '+':
	print(x + y)
elif c == '-':
	print(x - y)
elif c == '*':
	print(x * y)
else:
	print(x / y)


a = int(input())
b = int(input())
c = input()
d = str(a) + ' ' + c + ' ' + str(b)
e = eval(d)
print(e)


A = int(input())
B = int(input())
c = input()
if c == '+':
	print(A + B)
elif c == '-':
	print(A - B)
elif c == '*':
	print(A * B)
elif c == '/':
	print(A / B)


A = int(input())
B = int(input())
C = input()
if C == '+':
	print(A + B)
elif C == '-':
	print(A - B)
elif C == '*':
	print(A * B)
else:
	print(A / B)


n = int(input())
n1 = int(input())
s = input()
if s == '+':
	print(n + n1)
elif s == '-':
	print(n - n1)
elif s == '*':
	print(n * n1)
elif s == '/':
	print(n / n1)


A = int(input())
B = int(input())
operator = input()
if operator == '+':
	print(A + B)
elif operator == '-':
	print(A - B)
elif operator == '*':
	print(A * B)
else:
	print(A / B)


import math
a = int(input())
b = int(input())
c = input()
list1 = ['+', '-', '*', '/']
if c == list1[-4]:
	print(a + b)
elif c == list1[-3]:
	print(a - b)
elif c == list1[-2]:
	print(a * b)
else:
	print(a / b)


n = int(input())
m = int(input())
op = input()
if op == '+':
	print(m + n)
if op == '-':
	print(n - m)
if op == '*':
	print(m * n)
if op == '/':
	print(n / m)


n1 = int(input())
n2 = int(input())
c = input()
if c == '+':
	print(n1 + n2)
elif c == '-':
	print(n1 - n2)
elif c == '*':
	print(n1 * n2)
else:
	print(n1 / n2)


x = int(input())
y = int(input())
a = input()
if a == '+':
	print(x + y)
elif a == '-':
	print(x - y)
elif a == '*':
	print(x * y)
elif a == '/':
	print(x / y)


a = int(input())
b = int(input())
c = input()
l = ['+', '-', '*', '/']
if c == l[-4]:
	print(a + b)
elif c == l[-3]:
	print(a - b)
elif c == l[-2]:
	print(a * b)
else:
	print(a / b)


a = int(input())
b = int(input())
c = input()
print(eval(str(a) + c + str(b)))


a = int(input())
b = int(input())
c = input()
if c == '+':
	print(a + b)
elif c == '-':
	print(a - b)
elif c == '*':
	print(a * b)
elif c == '/':
	print(a / b)
else:
	print('error')


def cal(a, b, s):
	if s == '+':
		print(a + b)
	elif s == '-':
		print(a - b)
	elif s == '*':
		print(a * b)
	else:
		print(a / b)
a = int(input())
b = int(input())
c = input()
cal(a, b, c)


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


a = int(input())
b = int(input())
o = input()
if o == '+':
	print(a + b)
elif o == '-':
	print(a - b)
elif o == '*':
	print(a * b)
else:
	print(a / b)


a = int(input())
b = int(input())
l = input()
if l == '+':
	print(a + b)
elif l == '/':
	print(a / b)
elif l == '-':
	print(a - b)
else:
	print(a * b)


a = int(input())
b = int(input())
op = input()
s = {'+', '-', '*', '/'}
if op in s:
	if op == '+':
		print(a + b)
	if op == '-':
		print(a - b)
	if op == '*':
		print(a * b)
	if op == '/':
		print(a / b)


n = int(input())
m = int(input())
s = input()
if s == '/':
	print(n / m)
elif s == '+':
	print(n + m)
elif s == '*':
	print(n * m)
elif s == '-':
	print(n - m)


x = int(input())
y = int(input())
z = str(input())
if z == '+':
	print(x + y)
elif z == '-':
	print(x - y)
elif z == '*':
	print(x * y)
elif z == '/':
	print(x / y)


a = int(input())
b = int(input())
i = input()
if i == '/':
	print(a / b)
elif i == '+':
	print(a + b)
elif i == '-':
	print(a - b)
else:
	print(a * b)


one = int(input())
two = int(input())
element = input()
if element == '/':
	print(one / two)
elif element == '*':
	print(one * two)
elif element == '-':
	print(one - two)
elif element == '+':
	print(one + two)


a = int(input())
b = int(input())
c = input()
l = ['+', '-', '*', '/']
if c == l[0]:
	print(a + b)
elif c == l[1]:
	print(a - b)
elif c == l[2]:
	print(a * b)
else:
	print(a / b)


a = int(input())
b = int(input())
c = input()
if c == '+':
	print(a + b)
elif c == '-':
	print(a - b)
elif c == '*':
	print(a * b)
elif c == '/':
	print(a / b)
else:
	pass


a = int(input())
b = int(input())
ch = input()
if ch == '/':
	print(a / b)
elif ch == '*':
	print(a * b)
elif ch == '-':
	print(a - b)
else:
	print(a + b)


x = int(input())
y = int(input())
o = input()
if o == '+':
	print(x + y)
elif o == '-':
	print(x - y)
elif o == '/':
	print(x / y)
elif o == '*':
	print(x * y)


a = int(input())
b = int(input())
sym = input()
if sym == '+':
	print(a + b)
if sym == '-':
	print(a - b)
if sym == '*':
	print(a * b)
if sym == '/':
	print(a / b)


number1 = int(input())
number2 = int(input())
symbol = input()
if symbol == '+':
	print(number1 + number2)
elif symbol == '-':
	print(number1 - number2)
elif symbol == '*':
	print(number1 * number2)
else:
	print(number1 / number2)


NumberOne = int(input())
NumberTwo = int(input())
ArithmeticOperator = input()
if ArithmeticOperator == '+':
	print(NumberOne + NumberTwo)
elif ArithmeticOperator == '-':
	print(NumberOne - NumberTwo)
elif ArithmeticOperator == '*':
	print(NumberOne * NumberTwo)
else:
	print(NumberOne / NumberTwo)


a = int(input())
b = int(input())
p = input()
if p == '+':
	print(a + b)
if p == '-':
	print(a - b)
if p == '*':
	print(a * b)
if p == '/':
	print(a / b)


n = int(input())
k = int(input())
s = input()
if s == '+':
	print(n + k)
elif s == '-':
	print(n - k)
elif s == '*':
	print(n * k)
elif s == '/':
	print(n / k)


for i in range(1):
	op1 = int(input())
	op2 = int(input())
	oprd = input()
	operations = {'+': op1 + op2, '-': op1 - op2, '*': op1 * op2, '/': op1 / op2}
	print(operations[oprd])


a = int(input())
b = int(input())
c = str(input())
if c == '+':
	print(a + b)
elif c == '-':
	print(a - b)
elif c == '*':
	print(a * b)
else:
	print(a / b)


n = int(input())
m = int(input())
x = input()
if x == '+':
	print(n + m)
elif x == '-':
	print(n - m)
elif x == '*':
	print(n * m)
else:
	print(n / m)


a = int(input())
b = int(input())
z = input()
if z == '+':
	print(a + b)
if z == '-':
	print(a - b)
if z == '/':
	print(a / b)
if z == '*':
	print(a * b)