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

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

class C:
    def __init__(self, txt: str):
        self.s: A = None
        self.r: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.q: F = None
        self.v: C = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.y: B = None
        self.s: F = None
        self.x: E = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: A = None
        self.r: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.q: F = None
        self.v: C = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.y: B = None
        self.s: F = None
        self.x: E = None
        self.txt = txt

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

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

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