def primer_vol(l,desti,hora):
    if l[0] == desti:
        for hora_sort in l[1:]:  
            if hora_sort>=hora:
                return hora_sort
    return -1

def ordena(l):
    l.sort(key=lambda x:x[1])

def vols(l,desti,hora,lnoms):
    lres = []
    for i in range(len(l)):
        h = primer_vol(l[i],desti,hora)
        if h!=-1:
            nom = lnoms[i]
            t = (nom,h)
            lres.append(t)
    return lres

