class A:
    def __init__(self, txt: str):
        self.x: I = None
        self.o: F = None
        self.w: C = None
        self.z: E = None
        self.t: F = None
        self.s: H = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.p: G = None
        self.u: B = None
        self.w: F = None
        self.x: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.o: A = None
        self.q: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: B = None
        self.s: H = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.p: G = None
        self.u: B = None
        self.w: F = None
        self.x: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.o: A = None
        self.q: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: B = None
        self.s: H = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

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

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