class A:
    def __init__(self, txt: str):
        self.w: B = None
        self.s: D = None
        self.u: I = None
        self.p: J = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.z: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.y: C = None
        self.v: E = None
        self.u: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: I = None
        self.y: J = None
        self.v: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: D = None
        self.y: D = None
        self.o: J = None
        self.v: A = None
        self.w: A = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.z: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.y: C = None
        self.v: E = None
        self.u: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: I = None
        self.y: J = None
        self.v: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: D = None
        self.y: D = None
        self.o: J = None
        self.v: A = None
        self.w: A = None
        self.txt = txt

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

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

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