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

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

class C:
    def __init__(self, txt: str):
        self.w: D = None
        self.t: E = None
        self.y: D = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: B = None
        self.u: C = None
        self.r: E = None
        self.w: H = None
        self.q: B = None
        self.txt = txt

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

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

e = A("e")
b = B("b")
j = C("j")
l = D("l")
d = E("d")
a = F("a")
h = G("h")
m = H("m")

e.z = a
e.y = l
e.u = b
e.t = m
e.v = m
e.w = d
e.o = d
b.w = e
b.u = j
j.w = l
j.y = l
j.t = d
l.z = b
l.s = b
l.u = b
l.p = a
l.o = a
l.q = h
l.v = e
d.z = h
a.t = b
a.q = b
a.u = j
a.r = d
a.w = m
h.o = j
h.r = l
m.t = j
assert a.u.y.v.y.txt == "
class A:
    def __init__(self, txt: str):
        self.z: F = None
        self.y: D = None
        self.u: B = None
        self.t: H = None
        self.w: E = None
        self.v: H = None
        self.o: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.w: D = None
        self.t: E = None
        self.y: D = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: B = None
        self.u: C = None
        self.r: E = None
        self.w: H = None
        self.q: B = None
        self.txt = txt

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

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

e = A("e")
b = B("b")
j = C("j")
l = D("l")
d = E("d")
a = F("a")
h = G("h")
m = H("m")

e.z = a
e.y = l
e.u = b
e.t = m
e.v = m
e.w = d
e.o = d
b.w = e
b.u = j
j.w = l
j.y = l
j.t = d
l.z = b
l.s = b
l.u = b
l.p = a
l.o = a
l.q = h
l.v = e
d.z = h
a.t = b
a.q = b
a.u = j
a.r = d
a.w = m
h.o = j
h.r = l
m.t = j
assert a.u.y.v.y.txt == "l"