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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.t: B = None
        self.o: B = None
        self.s: B = None
        self.r: C = None
        self.q: B = None
        self.u: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: C = None
        self.y: D = None
        self.o: E = None
        self.x: H = None
        self.txt = txt

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

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.t: B = None
        self.o: B = None
        self.s: B = None
        self.r: C = None
        self.q: B = None
        self.u: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: C = None
        self.y: D = None
        self.o: E = None
        self.x: H = None
        self.txt = txt

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

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

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