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

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

class C:
    def __init__(self, txt: str):
        self.x: H = None
        self.o: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.u: C = None
        self.z: I = None
        self.s: H = None
        self.p: F = None
        self.o: G = None
        self.v: G = None
        self.q: H = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.q: F = None
        self.s: J = None
        self.v: A = None
        self.u: J = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.x: H = None
        self.o: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.u: C = None
        self.z: I = None
        self.s: H = None
        self.p: F = None
        self.o: G = None
        self.v: G = None
        self.q: H = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.q: F = None
        self.s: J = None
        self.v: A = None
        self.u: J = None
        self.txt = txt

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

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

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