def divide(a, b):
return int(a) / int(b)
def fold(a, b):
return int(a) + int(b)
def multiple(a, b):
return int(a) * int(b)
def take(a, b):
return int(a) - int(b)
def main():
print('Введите выражение')
userInput = input()
while True:
userInput2 = userInput.split('/')
l = len(userInput2)
if l > 1:
result = divide(userInput2[0], userInput2[1])
print(result)
break
userInput2 = userInput.split('+')
l = len(userInput2)
if l > 1:
result = fold(userInput2[0], userInput2[1])
print(result)
break
userInput2 = userInput.split('*')
l = len(userInput2)
if l > 1:
result = multiple(userInput2[0], userInput2[1])
print(result)
break
userInput2 = userInput.split('-')
l = len(userInput2)
if l > 1:
result = take(userInput2[0], userInput2[1])
print(result)
break
main()