class A:
    def __init__(self, txt: str):
        self.w: B = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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