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

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

class C:
    def __init__(self, txt: str):
        self.p: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: A = None
        self.o: I = None
        self.q: G = None
        self.z: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: H = None
        self.w: I = None
        self.s: F = None
        self.y: B = None
        self.p: D = None
        self.x: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: C = None
        self.u: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: A = None
        self.s: F = None
        self.z: D = None
        self.o: D = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.s: D = None
        self.t: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: A = None
        self.o: I = None
        self.q: G = None
        self.z: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: H = None
        self.w: I = None
        self.s: F = None
        self.y: B = None
        self.p: D = None
        self.x: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: C = None
        self.u: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: A = None
        self.s: F = None
        self.z: D = None
        self.o: D = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.s: D = None
        self.t: F = None
        self.txt = txt

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

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