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

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.x: G = None
        self.q: C = None
        self.z: C = None
        self.s: G = None
        self.r: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.r: B = None
        self.t: E = None
        self.w: C = None
        self.q: E = None
        self.z: E = None
        self.x: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.z: D = None
        self.v: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: F = None
        self.x: F = None
        self.q: C = None
        self.v: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: F = None
        self.o: E = None
        self.r: B = None
        self.z: A = None
        self.txt = txt

l = A("l")
c = B("c")
a = C("a")
m = D("m")
h = E("h")
d = F("d")
g = G("g")
k = H("k")
b = I("b")

l.y = h
l.o = m
c.t = g
c.x = g
c.s = g
c.r = g
c.q = a
c.z = a
a.w = l
a.s = h
m.p = h
h.p = a
h.w = a
h.s = a
h.v = k
h.o = k
h.x = d
d.o = l
d.r = c
d.t = h
d.q = h
d.z = h
d.w = a
d.x = g
g.s = m
g.z = m
g.v = m
k.w = d
k.x = d
k.q = a
k.v = h
b.w = d
b.o = h
b.r = c
b.z = l
assert b.z.y.o.txt == "
class A:
    def __init__(self, txt: str):
        self.y: E = None
        self.o: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.x: G = None
        self.q: C = None
        self.z: C = None
        self.s: G = None
        self.r: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.r: B = None
        self.t: E = None
        self.w: C = None
        self.q: E = None
        self.z: E = None
        self.x: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.z: D = None
        self.v: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: F = None
        self.x: F = None
        self.q: C = None
        self.v: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: F = None
        self.o: E = None
        self.r: B = None
        self.z: A = None
        self.txt = txt

l = A("l")
c = B("c")
a = C("a")
m = D("m")
h = E("h")
d = F("d")
g = G("g")
k = H("k")
b = I("b")

l.y = h
l.o = m
c.t = g
c.x = g
c.s = g
c.r = g
c.q = a
c.z = a
a.w = l
a.s = h
m.p = h
h.p = a
h.w = a
h.s = a
h.v = k
h.o = k
h.x = d
d.o = l
d.r = c
d.t = h
d.q = h
d.z = h
d.w = a
d.x = g
g.s = m
g.z = m
g.v = m
k.w = d
k.x = d
k.q = a
k.v = h
b.w = d
b.o = h
b.r = c
b.z = l
assert b.z.y.o.txt == "k"