class A:
    def __init__(self, txt: str):
        self.y: C = None
        self.p: E = None
        self.s: E = None
        self.t: D = None
        self.r: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: F = None
        self.q: A = None
        self.t: F = None
        self.s: A = None
        self.r: C = None
        self.o: B = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.z: A = None
        self.y: E = None
        self.w: D = None
        self.p: F = None
        self.x: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: E = None
        self.q: C = None
        self.u: F = None
        self.v: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.x: E = None
        self.q: C = None
        self.y: D = None
        self.w: D = None
        self.txt = txt

c = A("c")
m = B("m")
f = C("f")
h = D("h")
a = E("a")
l = F("l")
g = F("g")
k = B("k")

c.y = f
c.p = a
c.s = a
c.t = h
c.r = m
m.v = l
m.t = l
m.q = c
m.s = c
m.r = f
m.o = k
f.q = l
f.p = l
f.z = c
f.y = a
f.w = h
f.x = h
h.y = a
h.v = a
h.q = f
h.u = l
a.v = h
l.s = h
l.y = h
l.w = h
l.x = a
l.q = f
g.s = h
g.y = h
g.w = h
g.x = a
g.q = f
k.v = l
k.q = c
k.s = c
k.t = g
k.r = f
k.o = m
assert a.v.q.x.q.q.x.v.u.txt == "
class A:
    def __init__(self, txt: str):
        self.y: C = None
        self.p: E = None
        self.s: E = None
        self.t: D = None
        self.r: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: F = None
        self.q: A = None
        self.t: F = None
        self.s: A = None
        self.r: C = None
        self.o: B = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.z: A = None
        self.y: E = None
        self.w: D = None
        self.p: F = None
        self.x: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: E = None
        self.q: C = None
        self.u: F = None
        self.v: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.x: E = None
        self.q: C = None
        self.y: D = None
        self.w: D = None
        self.txt = txt

c = A("c")
m = B("m")
f = C("f")
h = D("h")
a = E("a")
l = F("l")
g = F("g")
k = B("k")

c.y = f
c.p = a
c.s = a
c.t = h
c.r = m
m.v = l
m.t = l
m.q = c
m.s = c
m.r = f
m.o = k
f.q = l
f.p = l
f.z = c
f.y = a
f.w = h
f.x = h
h.y = a
h.v = a
h.q = f
h.u = l
a.v = h
l.s = h
l.y = h
l.w = h
l.x = a
l.q = f
g.s = h
g.y = h
g.w = h
g.x = a
g.q = f
k.v = l
k.q = c
k.s = c
k.t = g
k.r = f
k.o = m
assert a.v.q.x.q.q.x.v.u.txt == "l"