class A:
    def __init__(self, txt: str):
        self.z: D = None
        self.x: A = None
        self.t: F = None
        self.s: B = None
        self.v: A = None
        self.r: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.y: F = None
        self.r: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: F = None
        self.y: B = None
        self.u: F = None
        self.r: B = None
        self.z: A = None
        self.o: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: C = None
        self.z: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: C = None
        self.q: A = None
        self.s: A = None
        self.x: C = None
        self.t: A = None
        self.txt = txt

b = A("b")
d = B("d")
c = C("c")
e = D("e")
k = E("k")
l = F("l")
h = A("h")
g = D("g")

b.z = e
b.x = h
b.v = h
b.t = l
b.r = l
b.s = d
d.t = l
d.u = c
d.o = b
d.r = h
c.q = l
c.y = l
c.r = l
e.x = l
e.u = l
e.y = d
e.r = d
e.z = b
e.o = c
k.q = c
k.z = d
l.w = c
l.x = c
l.q = b
l.s = b
l.t = h
h.z = e
h.x = b
h.v = b
h.t = l
h.r = l
h.s = d
g.x = l
g.u = l
g.y = d
g.r = d
g.z = h
g.o = c
assert l.x.y.q.z.r.txt == "
class A:
    def __init__(self, txt: str):
        self.z: D = None
        self.x: A = None
        self.t: F = None
        self.s: B = None
        self.v: A = None
        self.r: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.y: F = None
        self.r: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: F = None
        self.y: B = None
        self.u: F = None
        self.r: B = None
        self.z: A = None
        self.o: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: C = None
        self.z: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: C = None
        self.q: A = None
        self.s: A = None
        self.x: C = None
        self.t: A = None
        self.txt = txt

b = A("b")
d = B("d")
c = C("c")
e = D("e")
k = E("k")
l = F("l")
h = A("h")
g = D("g")

b.z = e
b.x = h
b.v = h
b.t = l
b.r = l
b.s = d
d.t = l
d.u = c
d.o = b
d.r = h
c.q = l
c.y = l
c.r = l
e.x = l
e.u = l
e.y = d
e.r = d
e.z = b
e.o = c
k.q = c
k.z = d
l.w = c
l.x = c
l.q = b
l.s = b
l.t = h
h.z = e
h.x = b
h.v = b
h.t = l
h.r = l
h.s = d
g.x = l
g.u = l
g.y = d
g.r = d
g.z = h
g.o = c
assert l.x.y.q.z.r.txt == "d"