num1 = float(input("Enter the first number, please: "))

operator = input("Enter the operator, please: ")
num2 = float(input("Enter the second number, please: "))

if operator == "*":
    print(num1 * num2)
elif operator == "/":
    if num2 == 0:
        print("Error: Sorry, you cannot divide by zero.")
    else:
        print(num1 / num2)
elif operator == "+":
    print(num1 + num2)
elif operator == "-":  # Corrected the minus sign
    print(num1 - num2)
else:
    print("Wrong operator. Please try again.")