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

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

class C:
    def __init__(self, txt: str):
        self.p: A = None
        self.x: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: A = None
        self.x: F = None
        self.t: F = None
        self.p: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: C = None
        self.z: B = None
        self.q: G = None
        self.y: H = None
        self.v: A = None
        self.u: F = None
        self.p: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: H = None
        self.t: E = None
        self.x: G = None
        self.r: B = None
        self.y: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: F = None
        self.s: F = None
        self.z: F = None
        self.t: E = None
        self.r: E = None
        self.q: B = None
        self.txt = txt

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

e = A("e")
c = B("c")
d = C("d")
g = D("g")
m = E("m")
h = F("h")
b = G("b")
l = H("l")
i = H("i")

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

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

class C:
    def __init__(self, txt: str):
        self.p: A = None
        self.x: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: A = None
        self.x: F = None
        self.t: F = None
        self.p: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: C = None
        self.z: B = None
        self.q: G = None
        self.y: H = None
        self.v: A = None
        self.u: F = None
        self.p: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: H = None
        self.t: E = None
        self.x: G = None
        self.r: B = None
        self.y: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: F = None
        self.s: F = None
        self.z: F = None
        self.t: E = None
        self.r: E = None
        self.q: B = None
        self.txt = txt

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

e = A("e")
c = B("c")
d = C("d")
g = D("g")
m = E("m")
h = F("h")
b = G("b")
l = H("l")
i = H("i")

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