def function6(name,measured_distance):
    if (name=="chethana"):
        r=range(50,200)
        if(measured_distance in r):
            return 1
        else:
            return 0
    elif(name=="dinesh"):
        r=range(50,100)
        if(measured_distance in r):
            return 1
        else:
            return 0
    elif(name=="sampu"):
        r=range(120,160)
        if(measured_distance in r):
            return 1
        else:
            return 0
        
