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

class B:
    def __init__(self, txt: str):
        self.o: A = None
        self.p: F = None
        self.q: J = None
        self.w: D = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.z: I = None
        self.r: D = None
        self.p: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: A = None
        self.z: D = None
        self.y: F = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.t: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: A = None
        self.p: F = None
        self.q: J = None
        self.w: D = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.z: I = None
        self.r: D = None
        self.p: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: A = None
        self.z: D = None
        self.y: F = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.t: H = None
        self.txt = txt

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

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