a = input('') list_1 = ['+', '-', '*', '/'] for i in list_1: if i in a and a.count(i) == 1: num2 = float(a[a.find(i)+1:]) num1 = float(a[:a.find(i)]) if int(num2) == 0 and i == '/': print('Wrong!Division by zero!') break else: result = eval(a) print('{:.4f}{}{:.4f}={:.4f}'.format(num1, i, num2, result)) break else: print('Invalid operation!')