class A:
    def __init__(self, txt: str):
        self.z: F = None
        self.w: D = None
        self.u: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: E = None
        self.p: D = None
        self.o: C = None
        self.v: C = None
        self.t: D = None
        self.u: D = None
        self.q: F = None
        self.z: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: H = None
        self.u: D = None
        self.r: H = None
        self.o: H = None
        self.p: H = None
        self.z: F = None
        self.t: G = None
        self.y: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: C = None
        self.y: H = None
        self.p: C = None
        self.u: B = None
        self.s: F = None
        self.z: C = None
        self.t: F = None
        self.r: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: B = None
        self.u: C = None
        self.r: G = None
        self.o: F = None
        self.v: E = None
        self.p: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: E = None
        self.p: D = None
        self.o: C = None
        self.v: C = None
        self.t: D = None
        self.u: D = None
        self.q: F = None
        self.z: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: H = None
        self.u: D = None
        self.r: H = None
        self.o: H = None
        self.p: H = None
        self.z: F = None
        self.t: G = None
        self.y: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: C = None
        self.y: H = None
        self.p: C = None
        self.u: B = None
        self.s: F = None
        self.z: C = None
        self.t: F = None
        self.r: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: B = None
        self.u: C = None
        self.r: G = None
        self.o: F = None
        self.v: E = None
        self.p: H = None
        self.txt = txt

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

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