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

class B:
    def __init__(self, txt: str):
        self.y: H = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.w: E = None
        self.z: C = None
        self.y: E = None
        self.s: D = None
        self.o: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: B = None
        self.w: C = None
        self.p: B = None
        self.x: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: H = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.w: E = None
        self.z: C = None
        self.y: E = None
        self.s: D = None
        self.o: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: B = None
        self.w: C = None
        self.p: B = None
        self.x: G = None
        self.txt = txt

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

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