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

class B:
    def __init__(self, txt: str):
        self.q: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: F = None
        self.v: A = None
        self.q: I = None
        self.r: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: E = None
        self.q: B = None
        self.o: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: B = None
        self.y: A = None
        self.t: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: F = None
        self.y: I = None
        self.q: A = None
        self.u: E = None
        self.z: E = None
        self.x: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: D = None
        self.y: G = None
        self.p: C = None
        self.q: C = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.q: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: F = None
        self.v: A = None
        self.q: I = None
        self.r: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: E = None
        self.q: B = None
        self.o: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: B = None
        self.y: A = None
        self.t: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: F = None
        self.y: I = None
        self.q: A = None
        self.u: E = None
        self.z: E = None
        self.x: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: D = None
        self.y: G = None
        self.p: C = None
        self.q: C = None
        self.txt = txt

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

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

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