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

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

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

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.s: H = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.s: H = None
        self.txt = txt

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

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

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