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

class B:
    def __init__(self, txt: str):
        self.w: D = None
        self.q: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: E = None
        self.w: E = None
        self.p: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.u: D = None
        self.q: B = None
        self.w: B = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: D = None
        self.q: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: E = None
        self.w: E = None
        self.p: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.u: D = None
        self.q: B = None
        self.w: B = None
        self.txt = txt

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

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

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

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

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