class A:
    def __init__(self, txt: str):
        self.x: B = None
        self.y: H = None
        self.o: E = None
        self.r: E = None
        self.p: C = None
        self.v: B = None
        self.s: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.y: E = None
        self.s: H = None
        self.z: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: G = None
        self.u: G = None
        self.o: H = None
        self.p: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: D = None
        self.z: C = None
        self.q: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: E = None
        self.q: C = None
        self.t: H = None
        self.z: B = None
        self.x: D = None
        self.p: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: D = None
        self.u: D = None
        self.o: E = None
        self.p: F = None
        self.txt = txt

a = A("a")
i = B("i")
m = C("m")
d = D("d")
c = E("c")
k = F("k")
b = G("b")
l = H("l")

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

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.y: E = None
        self.s: H = None
        self.z: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: G = None
        self.u: G = None
        self.o: H = None
        self.p: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: D = None
        self.z: C = None
        self.q: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: E = None
        self.q: C = None
        self.t: H = None
        self.z: B = None
        self.x: D = None
        self.p: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: D = None
        self.u: D = None
        self.o: E = None
        self.p: F = None
        self.txt = txt

a = A("a")
i = B("i")
m = C("m")
d = D("d")
c = E("c")
k = F("k")
b = G("b")
l = H("l")

a.x = i
a.v = i
a.y = l
a.o = c
a.r = c
a.s = c
a.p = m
i.t = b
m.o = b
m.y = c
m.s = l
m.z = d
d.x = b
d.u = b
d.o = l
d.p = m
c.o = l
k.o = d
k.z = m
k.q = b
b.s = c
b.q = m
b.t = l
b.p = l
b.z = i
b.x = d
l.w = d
l.u = d
l.o = c
l.p = k
assert d.o.p.o.x.z.t.txt == "b"