class A:
    def __init__(self, txt: str):
        self.q: E = None
        self.o: B = None
        self.z: B = None
        self.p: B = None
        self.s: G = None
        self.t: E = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.r: B = None
        self.q: B = None
        self.s: F = None
        self.p: F = None
        self.v: I = None
        self.w: A = None
        self.y: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: H = None
        self.u: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: B = None
        self.o: H = None
        self.t: F = None
        self.z: A = None
        self.x: I = None
        self.s: D = None
        self.v: I = None
        self.r: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.r: B = None
        self.q: B = None
        self.s: F = None
        self.p: F = None
        self.v: I = None
        self.w: A = None
        self.y: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: H = None
        self.u: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: B = None
        self.o: H = None
        self.t: F = None
        self.z: A = None
        self.x: I = None
        self.s: D = None
        self.v: I = None
        self.r: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

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

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

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