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

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

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

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

class E:
    def __init__(self, txt: str):
        self.z: A = None
        self.p: B = None
        self.v: D = None
        self.y: I = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: H = None
        self.q: B = None
        self.r: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.x: F = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.z: A = None
        self.p: B = None
        self.v: D = None
        self.y: I = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: H = None
        self.q: B = None
        self.r: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.x: F = None
        self.txt = txt

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

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

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