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

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

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

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

class E:
    def __init__(self, txt: str):
        self.x: B = None
        self.s: C = None
        self.z: F = None
        self.r: F = None
        self.v: D = None
        self.t: D = None
        self.w: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: G = None
        self.r: C = None
        self.z: D = None
        self.v: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

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

a = A("a")
e = B("e")
n = C("n")
m = D("m")
f = E("f")
l = F("l")
g = G("g")
b = H("b")

a.s = m
e.y = b
e.t = n
e.v = l
n.p = e
m.u = e
m.z = n
f.x = e
f.s = n
f.w = n
f.z = l
f.r = l
f.v = m
f.t = m
l.s = g
l.r = n
l.v = n
l.z = m
g.t = l
b.t = f
b.p = f
b.v = e
b.w = e
b.q = l
b.r = a
b.u = m
assert e.y.w.y.w.v.z.txt == "
class A:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.x: B = None
        self.s: C = None
        self.z: F = None
        self.r: F = None
        self.v: D = None
        self.t: D = None
        self.w: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: G = None
        self.r: C = None
        self.z: D = None
        self.v: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

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

a = A("a")
e = B("e")
n = C("n")
m = D("m")
f = E("f")
l = F("l")
g = G("g")
b = H("b")

a.s = m
e.y = b
e.t = n
e.v = l
n.p = e
m.u = e
m.z = n
f.x = e
f.s = n
f.w = n
f.z = l
f.r = l
f.v = m
f.t = m
l.s = g
l.r = n
l.v = n
l.z = m
g.t = l
b.t = f
b.p = f
b.v = e
b.w = e
b.q = l
b.r = a
b.u = m
assert e.y.w.y.w.v.z.txt == "m"