number1 = float(input("Please, enter the first number: "))
number2 = float(input("Please, enter the second number: "))

if abs(10 - number1) < abs(10 - number2):
    print(number1)
else:
    print(number2)