mark = float(input("What was your mark? "))

if mark >= 70:
    print("First class")
elif mark >= 60:
    print("Upper second class")
elif mark >= 50:
    print("Lower second class")
elif mark >= 40:
    print("Third class")
else:
    print("Fail!")
