# Purpose: Convert a temperature from Fahrenheit to Celsius.
# Preconditions: User enters a temperature in Fahrenheit.
# Postconditions: Program prints the message "x F is y C.",
#     rounded to one digit after the decimal point.
def main():
    # 1. Get the Fahrenheit temperature from the user.
    fahr = float(input("Enter a temp in Fahrenheit: "))

    # 2. Convert to Celsius using the formula C = 5/9 (F-32)
    celsius = (5/9) * (fahr - 32)
    # 3. Round the Fahrenheit temperature to one decimal.
    fahr_round = round(fahr, 1)
    # 4. Round the Celsius temperature to one decimal.
    cels_round = round(celsius, 1)

    # 5. Output the answer message.
    print(fahr_round, "F is", cels_round, "C.")

main()
