# list of elements to calculate mean
import csv;
from collections import Counter;

with open('data.csv', newline="") as f:
    reader=csv.reader(f)

    file_data=list(reader)


file_data.pop(0)
#print(file_data)
#sorting data to get the height of people
new_data= []
for i in range(len(file_data)):
    n_number=file_data[i][1]
    new_data.append(float(n_number))

#getting the mean
n=len(new_data)
new_data.sort()

#using floor division to get the nearest number whole number floor division is shown by //

if n % 2 ==0:
    #getting the first number
    median1=float(new_data[n//2])
    

    #getting the second number
    median2=float(new_data[n//2-1])

    #getting median of these numbers
    median=(median1+median2)/2
    
else:
    median=new_data[n//2]
    
    print (n)

print("Median is :- "+str(median)) 