a = input("Enter marks: ")
if a >= 66:
	print "First Class Distinction"
elif a >= 60 :
	print "First Class"
elif a >= 55 :
	print "Higher Second Class"
elif a >= 50 :
	print "Second Class"
elif a >= 40 :
	print "Pass Class"
else:
	print "FAILED"
