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

class B:
    def __init__(self, txt: str):
        self.q: H = None
        self.t: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: C = None
        self.y: B = None
        self.t: A = None
        self.p: F = None
        self.o: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.t: D = None
        self.s: D = None
        self.v: B = None
        self.r: H = None
        self.y: H = None
        self.x: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: F = None
        self.o: A = None
        self.u: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: F = None
        self.u: C = None
        self.x: G = None
        self.s: D = None
        self.w: B = None
        self.p: G = None
        self.o: A = None
        self.y: A = None
        self.txt = txt

a = A("a")
k = B("k")
j = C("j")
d = D("d")
f = E("f")
n = F("n")
m = G("m")
e = H("e")
l = C("l")

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

class B:
    def __init__(self, txt: str):
        self.q: H = None
        self.t: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: C = None
        self.y: B = None
        self.t: A = None
        self.p: F = None
        self.o: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.t: D = None
        self.s: D = None
        self.v: B = None
        self.r: H = None
        self.y: H = None
        self.x: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: F = None
        self.o: A = None
        self.u: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: F = None
        self.u: C = None
        self.x: G = None
        self.s: D = None
        self.w: B = None
        self.p: G = None
        self.o: A = None
        self.y: A = None
        self.txt = txt

a = A("a")
k = B("k")
j = C("j")
d = D("d")
f = E("f")
n = F("n")
m = G("m")
e = H("e")
l = C("l")

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