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

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.s: C = None
        self.z: F = None
        self.r: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: D = None
        self.p: D = None
        self.y: J = None
        self.q: G = None
        self.r: D = None
        self.v: H = None
        self.z: H = None
        self.w: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: B = None
        self.o: H = None
        self.s: A = None
        self.v: I = None
        self.w: J = None
        self.p: A = None
        self.q: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: D = None
        self.s: G = None
        self.v: B = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.s: C = None
        self.o: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.s: C = None
        self.z: F = None
        self.r: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: D = None
        self.p: D = None
        self.y: J = None
        self.q: G = None
        self.r: D = None
        self.v: H = None
        self.z: H = None
        self.w: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: B = None
        self.o: H = None
        self.s: A = None
        self.v: I = None
        self.w: J = None
        self.p: A = None
        self.q: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: D = None
        self.s: G = None
        self.v: B = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.s: C = None
        self.o: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

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

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