

def findNethbor(a,b,cb):
    if cb[a-1] = b:
        times += 1
        return times
    elif cc{cb[a-1]} == True:
        maax = len(cc) + 2
    else:
        times += 1
        findNethbor(cb[a-1],b,cb)
    

def caase(b):
    ca = b[1][0]
    cb = b[2][:]
    maax = 0
    for i in range(ca):
        times = 0
        maaax = findNethbor(i,i,cb,times)
        if maaax > maax:
            maax = maaax



a = open(r"C:\Users\Jy\Desktop\dta.py", "r").readlines

b = a
