class A:
    def __init__(self, txt: str):
        self.t: D = None
        self.z: E = None
        self.w: D = None
        self.s: D = None
        self.q: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: H = None
        self.z: C = None
        self.t: A = None
        self.o: C = None
        self.r: A = None
        self.w: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.o: E = None
        self.x: B = None
        self.p: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: E = None
        self.u: H = None
        self.x: D = None
        self.s: D = None
        self.v: E = None
        self.y: E = None
        self.p: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: D = None
        self.q: C = None
        self.t: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: H = None
        self.z: C = None
        self.t: A = None
        self.o: C = None
        self.r: A = None
        self.w: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.o: E = None
        self.x: B = None
        self.p: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: E = None
        self.u: H = None
        self.x: D = None
        self.s: D = None
        self.v: E = None
        self.y: E = None
        self.p: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: D = None
        self.q: C = None
        self.t: F = None
        self.txt = txt

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

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