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

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

class C:
    def __init__(self, txt: str):
        self.p: J = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.o: C = None
        self.u: C = None
        self.x: F = None
        self.t: J = None
        self.z: I = None
        self.w: F = None
        self.r: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: J = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.o: C = None
        self.u: C = None
        self.x: F = None
        self.t: J = None
        self.z: I = None
        self.w: F = None
        self.r: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

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

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

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