# this code inputs from the user a series of grades
# and outputs the number of students whose grades exceeded the average
# because we need at least two passes over the grades
# we would like to store them in the program
# below we use a list to store the grades
num = int(input("how many grades ? "))
# first get the numbers
# option 1
grades = []
for i in range(0,num):
grades.append(int(input()))
# option 2
##grades = [0] * num
##for i in range(0,num):
## grades[i] = int(input("enter a grade: "))
# then compute the average
mean = sum(grades)/num
print("mean grade is",mean)
# finally sum the students who exceeded it
# option 1: use a loops
count = 0
for g in grades:
if mean