from collections import Counter
import csv

with open('height-weight.csv',newline='') as f:
    reader=csv.reader(f)
    file_data=list(reader)

file_data.pop(0)

new_data=[]

for i in range(len(file_data)):
    n_num=file_data[i][1]
    new_data.append(float(n_num))

n=len(new_data)
data=Counter(new_data)
get_mode = dict(data)
#mode_data_for_range={
 #   '50 - 60' : 0,
 #  '60 - 70' : 0,
  #  '70 - 80' : 0
#}

mode1=[]
mode2=[]
mode=[]

for a,v in get_mode.items():
    a=float(a)
    if 50 < a < 60 :
        if v == max(list(data.values())):
            mode.append(a)
    elif 60 < a < 70 :
        if v == max(list(data.values())):
            mode1.append(a)
    elif 70 < a < 80 :
        if v == max(list(data.values())):
            mode2.append(a)

if len(mode) > len(mode1) and len(mode2):
    print("mode is "+ ",".join(map(str,mode)))

elif len(mode1) > len(mode) and len(mode2):
    print("mode is "+ ",".join(map(str,mode1)))

elif len(mode2) > len(mode1) and len(mode):
    print("mode is "+ ",".join(map(str,mode2)))

print(get_mode)