class A:
    def __init__(self, txt: str):
        self.t: C = None
        self.x: C = None
        self.r: C = None
        self.v: F = None
        self.w: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: D = None
        self.o: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: J = None
        self.q: B = None
        self.t: I = None
        self.z: H = None
        self.r: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.z: J = None
        self.r: C = None
        self.v: I = None
        self.q: H = None
        self.o: A = None
        self.s: H = None
        self.t: E = None
        self.w: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: A = None
        self.r: I = None
        self.y: G = None
        self.o: J = None
        self.t: E = None
        self.u: G = None
        self.x: F = None
        self.p: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: F = None
        self.p: H = None
        self.s: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: G = None
        self.z: C = None
        self.txt = txt

k = A("k")
e = B("e")
h = C("h")
g = D("g")
m = E("m")
a = F("a")
j = G("j")
c = H("c")
i = I("i")
l = J("l")

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

class B:
    def __init__(self, txt: str):
        self.w: D = None
        self.o: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: J = None
        self.q: B = None
        self.t: I = None
        self.z: H = None
        self.r: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.z: J = None
        self.r: C = None
        self.v: I = None
        self.q: H = None
        self.o: A = None
        self.s: H = None
        self.t: E = None
        self.w: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: A = None
        self.r: I = None
        self.y: G = None
        self.o: J = None
        self.t: E = None
        self.u: G = None
        self.x: F = None
        self.p: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: F = None
        self.p: H = None
        self.s: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: G = None
        self.z: C = None
        self.txt = txt

k = A("k")
e = B("e")
h = C("h")
g = D("g")
m = E("m")
a = F("a")
j = G("j")
c = H("c")
i = I("i")
l = J("l")

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