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

class B:
    def __init__(self, txt: str):
        self.p: D = None
        self.y: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: F = None
        self.z: G = None
        self.s: E = None
        self.v: D = None
        self.o: D = None
        self.q: H = None
        self.y: D = None
        self.u: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: A = None
        self.z: H = None
        self.x: C = None
        self.p: G = None
        self.txt = txt

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

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

e = A("e")
f = B("f")
m = C("m")
c = D("c")
i = E("i")
h = F("h")
j = G("j")
b = H("b")
g = C("g")
l = D("l")

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

class B:
    def __init__(self, txt: str):
        self.p: D = None
        self.y: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: F = None
        self.z: G = None
        self.s: E = None
        self.v: D = None
        self.o: D = None
        self.q: H = None
        self.y: D = None
        self.u: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: A = None
        self.z: H = None
        self.x: C = None
        self.p: G = None
        self.txt = txt

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

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

e = A("e")
f = B("f")
m = C("m")
c = D("c")
i = E("i")
h = F("h")
j = G("j")
b = H("b")
g = C("g")
l = D("l")

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