'''money=input("enter amount")

if(int(money)>40):
    print("Congrats have party")
else:
    print("Sorry")'''

'''marks=input("Enter marks")
if(int(marks)>=40):
    print("You are passed")
else:
    print("Failed")

age=input("Enter your age")
if(int(age)>=18):
    print("You are the eligible to drive")
else:
    print("low age")'''

Marks=int(input("Enter your marks: "))
if Marks>=90 and Marks<=100:
    print("Grade A")
elif Marks>=70 and Marks<90:
    print("Grade B")
elif Marks>=40 and Marks<70:
    print("Grade c")
elif Marks<40 and Marks>=0:
    print("Fail")
elif Marks>100:
    print("invalid input")
else:
    print("Invalid marks")




