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

class B:
    def __init__(self, txt: str):
        self.v: D = None
        self.x: H = None
        self.p: F = None
        self.o: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.o: D = None
        self.s: B = None
        self.q: E = None
        self.t: H = None
        self.y: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: G = None
        self.t: H = None
        self.r: B = None
        self.w: D = None
        self.x: A = None
        self.u: A = None
        self.q: H = None
        self.o: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: A = None
        self.r: C = None
        self.o: C = None
        self.q: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: D = None
        self.x: H = None
        self.p: F = None
        self.o: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.o: D = None
        self.s: B = None
        self.q: E = None
        self.t: H = None
        self.y: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: G = None
        self.t: H = None
        self.r: B = None
        self.w: D = None
        self.x: A = None
        self.u: A = None
        self.q: H = None
        self.o: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: A = None
        self.r: C = None
        self.o: C = None
        self.q: D = None
        self.txt = txt

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

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