class A:
    def __init__(self, txt: str):
        self.z: C = None
        self.v: H = None
        self.t: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: A = None
        self.w: H = None
        self.t: G = None
        self.x: H = None
        self.v: F = None
        self.s: G = None
        self.z: F = None
        self.y: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: E = None
        self.x: H = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.o: D = None
        self.y: G = None
        self.u: F = None
        self.t: C = None
        self.z: B = None
        self.txt = txt

k = A("k")
d = B("d")
j = C("j")
a = D("a")
h = E("h")
c = F("c")
e = G("e")
g = H("g")
l = H("l")

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

class B:
    def __init__(self, txt: str):
        self.p: A = None
        self.w: H = None
        self.t: G = None
        self.x: H = None
        self.v: F = None
        self.s: G = None
        self.z: F = None
        self.y: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: E = None
        self.x: H = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.o: D = None
        self.y: G = None
        self.u: F = None
        self.t: C = None
        self.z: B = None
        self.txt = txt

k = A("k")
d = B("d")
j = C("j")
a = D("a")
h = E("h")
c = F("c")
e = G("e")
g = H("g")
l = H("l")

k.z = j
k.v = g
k.t = e
d.p = k
d.w = g
d.t = e
d.s = e
d.y = e
d.x = l
d.v = c
d.z = c
j.z = d
a.w = h
a.x = g
h.x = c
h.w = c
h.s = l
h.r = k
h.q = a
h.y = e
h.o = g
h.t = j
c.q = a
c.v = k
c.z = k
c.p = d
c.x = h
c.u = g
c.o = e
c.r = e
e.z = l
g.o = a
g.y = e
g.u = c
g.t = j
g.z = d
l.o = a
l.y = e
l.u = c
l.t = j
l.z = d
assert a.w.y.z.y.z.txt == "l"