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

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

class C:
    def __init__(self, txt: str):
        self.v: I = None
        self.s: I = None
        self.y: G = None
        self.x: G = None
        self.p: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: I = None
        self.o: H = None
        self.p: B = None
        self.s: B = None
        self.x: H = None
        self.u: A = None
        self.z: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.r: C = None
        self.y: D = None
        self.t: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: H = None
        self.q: B = None
        self.y: E = None
        self.x: G = None
        self.t: E = None
        self.z: D = None
        self.w: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: I = None
        self.s: I = None
        self.y: G = None
        self.x: G = None
        self.p: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: I = None
        self.o: H = None
        self.p: B = None
        self.s: B = None
        self.x: H = None
        self.u: A = None
        self.z: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.r: C = None
        self.y: D = None
        self.t: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: H = None
        self.q: B = None
        self.y: E = None
        self.x: G = None
        self.t: E = None
        self.z: D = None
        self.w: D = None
        self.txt = txt

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

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