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

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

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.z: E = None
        self.w: E = None
        self.q: F = None
        self.u: C = None
        self.txt = txt

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

b.s = l
b.u = n
b.z = n
b.q = h
b.t = e
n.w = e
n.u = f
e.y = g
e.v = c
e.z = n
l.y = n
l.z = f
l.x = h
l.o = m
g.z = n
g.s = h
g.q = c
g.u = l
g.y = m
g.x = j
g.v = f
f.p = n
c.t = e
c.u = f
m.z = g
m.w = g
m.q = f
m.u = e
j.s = l
j.u = n
j.z = n
j.q = m
j.t = e
h.z = g
h.w = g
h.q = f
h.u = e
assert m.q.p.w.y.x.t.z.w.txt == "
class A:
    def __init__(self, txt: str):
        self.s: D = None
        self.u: B = None
        self.q: H = None
        self.z: B = None
        self.t: C = None
        self.txt = txt

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

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.z: E = None
        self.w: E = None
        self.q: F = None
        self.u: C = None
        self.txt = txt

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

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