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

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

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

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

class E:
    def __init__(self, txt: str):
        self.p: F = None
        self.u: I = None
        self.x: J = None
        self.w: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: A = None
        self.q: C = None
        self.s: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

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

j = A("j")
c = B("c")
n = C("n")
f = D("f")
d = E("d")
k = F("k")
a = G("a")
g = H("g")
m = I("m")
l = J("l")

j.z = n
j.s = l
j.o = l
j.t = c
j.x = c
j.v = a
j.w = a
j.q = m
j.u = g
j.p = d
c.s = k
c.v = d
c.p = d
c.u = g
c.t = g
c.y = m
c.r = a
n.t = m
n.x = l
n.w = l
n.z = l
n.s = g
n.v = g
n.o = k
n.y = k
f.o = g
f.v = l
f.w = c
f.p = m
d.p = k
d.u = m
d.w = m
d.x = l
k.r = n
a.z = j
a.q = n
a.s = k
g.u = k
g.q = k
m.z = c
l.y = m
l.t = j
l.w = d
l.o = f
l.u = k
assert c.u.q.r.t.z.v.x.w.x.txt == "
class A:
    def __init__(self, txt: str):
        self.z: C = None
        self.s: J = None
        self.t: B = None
        self.v: G = None
        self.w: G = None
        self.q: I = None
        self.u: H = None
        self.o: J = None
        self.p: E = None
        self.x: B = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.p: F = None
        self.u: I = None
        self.x: J = None
        self.w: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: A = None
        self.q: C = None
        self.s: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

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

j = A("j")
c = B("c")
n = C("n")
f = D("f")
d = E("d")
k = F("k")
a = G("a")
g = H("g")
m = I("m")
l = J("l")

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