import random
grade = random.randint(0,100)
temp = input("Please input your grade:")
grade = int(temp)
count = 0
while count < 10:
if grade>=90 and grade<100:
print("A")
elif grade >=80 and grade<90:
print("B")
elif grade>=60 and grade<80:
print("C")
elif grade<60 and grade>0:
print("D")
elif grade<0 or grade>100:
print("Error!")
temp = input("Please input your grade:")
grade = int(temp)
count += 1
print("The test is over!")