name = input("Name: ")
name = name.title()
classs = int(input("Class: "))
A = int(input("Computer: "))
B = int(input("English: "))
C = int(input("Health: "))
D = int(input("Mathematics: "))
E = int(input("Nepali: "))
F = int(input("OptMaths: "))
G = int(input("Science: "))
H = int(input("Social: "))
list = [A,B,C,D,E,F,G,H]
x = 0
for subjects in list:
if subjects >= 90:
x = x + 4.0
elif subjects >=80:
x = x + 3.6
elif subjects >=70:
x = x + 3.2
elif subjects >=60:
x = x + 2.8
elif subjects >=50:
x = x + 2.4
elif subjects >=40:
x = x + 2.0
elif subjects >=30:
x = x + 1.6
elif subjects >=20:
x = x + 1.2
elif subjects >=10:
x = x + 0.8
else:
x = x + 0.4
print(f"{name} FROM {classs} GOT {x/8} GPA.")