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

class B:
    def __init__(self, txt: str):
        self.u: G = None
        self.t: F = None
        self.y: G = None
        self.p: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.w: H = None
        self.u: B = None
        self.o: B = None
        self.y: E = None
        self.t: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: J = None
        self.r: C = None
        self.w: C = None
        self.t: B = None
        self.s: B = None
        self.z: A = None
        self.p: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.x: C = None
        self.z: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: H = None
        self.s: F = None
        self.o: A = None
        self.y: H = None
        self.p: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: D = None
        self.x: I = None
        self.q: B = None
        self.v: G = None
        self.y: F = None
        self.t: I = None
        self.u: G = None
        self.p: D = None
        self.w: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: B = None
        self.o: C = None
        self.s: A = None
        self.x: H = None
        self.w: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: G = None
        self.t: F = None
        self.y: G = None
        self.p: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.w: H = None
        self.u: B = None
        self.o: B = None
        self.y: E = None
        self.t: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: J = None
        self.r: C = None
        self.w: C = None
        self.t: B = None
        self.s: B = None
        self.z: A = None
        self.p: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.x: C = None
        self.z: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: H = None
        self.s: F = None
        self.o: A = None
        self.y: H = None
        self.p: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: D = None
        self.x: I = None
        self.q: B = None
        self.v: G = None
        self.y: F = None
        self.t: I = None
        self.u: G = None
        self.p: D = None
        self.w: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: B = None
        self.o: C = None
        self.s: A = None
        self.x: H = None
        self.w: E = None
        self.txt = txt

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

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