class A:
    def __init__(self, txt: str):
        self.x: H = None
        self.q: D = None
        self.r: E = None
        self.t: H = None
        self.o: E = None
        self.v: I = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.x: B = None
        self.o: B = None
        self.u: H = None
        self.y: G = None
        self.z: I = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.q: E = None
        self.r: I = None
        self.x: G = None
        self.p: H = None
        self.txt = txt

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.x: B = None
        self.o: B = None
        self.u: H = None
        self.y: G = None
        self.z: I = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.q: E = None
        self.r: I = None
        self.x: G = None
        self.p: H = None
        self.txt = txt

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

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

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

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

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