marks=int(input("Enter marks: "))
print("Your Grade is:")

if marks>=0 and marks<=39:
	print("FAIL")
elif marks>=40 and marks<=59:
	print("Third")
elif marks>=60 and marks<=79:
	print("Second")
elif marks>=80 and marks<=100:
	print("First")
else:
	print("Invalid") 