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

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.q: A = None
        self.s: A = None
        self.y: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: E = None
        self.p: A = None
        self.q: E = None
        self.v: D = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.x: C = None
        self.w: D = None
        self.v: D = None
        self.y: D = None
        self.txt = txt

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

m = A("m")
k = B("k")
j = C("j")
i = D("i")
h = E("h")
n = F("n")
g = G("g")
c = H("c")
a = F("a")

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

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.q: A = None
        self.s: A = None
        self.y: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: E = None
        self.p: A = None
        self.q: E = None
        self.v: D = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.x: C = None
        self.w: D = None
        self.v: D = None
        self.y: D = None
        self.txt = txt

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

m = A("m")
k = B("k")
j = C("j")
i = D("i")
h = E("h")
n = F("n")
g = G("g")
c = H("c")
a = F("a")

m.u = i
k.t = i
k.q = m
k.s = m
k.y = j
j.w = h
j.q = h
j.p = m
j.v = i
i.y = h
i.s = h
i.p = g
i.w = g
h.w = k
h.r = k
h.z = j
h.v = n
h.p = m
h.u = m
h.y = i
h.s = c
n.v = m
n.z = k
g.x = j
g.w = i
g.v = i
g.y = i
c.s = h
c.v = j
c.x = j
c.t = j
a.v = m
a.z = k
assert i.w.y.y.y.s.v.txt == "n"