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

class B:
    def __init__(self, txt: str):
        self.r: I = None
        self.v: F = None
        self.y: F = None
        self.o: G = None
        self.p: E = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: J = None
        self.p: F = None
        self.q: B = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.v: E = None
        self.t: I = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: I = None
        self.v: F = None
        self.y: F = None
        self.o: G = None
        self.p: E = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: J = None
        self.p: F = None
        self.q: B = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.v: E = None
        self.t: I = None
        self.txt = txt

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

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