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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.z: J = None
        self.u: H = None
        self.y: A = None
        self.s: A = None
        self.w: E = None
        self.x: D = None
        self.o: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: D = None
        self.x: G = None
        self.s: A = None
        self.y: H = None
        self.r: B = None
        self.q: B = None
        self.t: H = None
        self.o: F = None
        self.txt = txt

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

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

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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.z: J = None
        self.u: H = None
        self.y: A = None
        self.s: A = None
        self.w: E = None
        self.x: D = None
        self.o: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: D = None
        self.x: G = None
        self.s: A = None
        self.y: H = None
        self.r: B = None
        self.q: B = None
        self.t: H = None
        self.o: F = None
        self.txt = txt

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

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

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