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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.z: F = None
        self.y: D = None
        self.t: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: D = None
        self.x: G = None
        self.o: H = None
        self.s: B = None
        self.q: G = None
        self.t: G = None
        self.r: A = None
        self.y: A = None
        self.txt = txt

m = A("m")
i = B("i")
n = C("n")
j = D("j")
a = E("a")
e = F("e")
d = G("d")
h = H("h")
g = H("g")

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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.z: F = None
        self.y: D = None
        self.t: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: D = None
        self.x: G = None
        self.o: H = None
        self.s: B = None
        self.q: G = None
        self.t: G = None
        self.r: A = None
        self.y: A = None
        self.txt = txt

m = A("m")
i = B("i")
n = C("n")
j = D("j")
a = E("a")
e = F("e")
d = G("d")
h = H("h")
g = H("g")

m.s = i
i.y = n
n.t = j
n.s = a
n.u = m
n.o = m
n.z = e
n.r = h
n.v = i
j.u = m
j.x = e
j.y = e
j.s = e
j.p = g
j.q = h
j.t = a
a.v = n
a.t = e
a.z = d
a.u = m
a.q = i
a.o = i
e.t = d
e.u = d
e.y = m
e.x = i
e.r = i
e.o = g
e.q = h
d.z = e
d.y = j
d.t = m
h.w = j
h.x = d
h.q = d
h.t = d
h.o = g
h.s = i
h.r = m
h.y = m
g.w = j
g.x = d
g.q = d
g.t = d
g.o = h
g.s = i
g.r = m
g.y = m
assert e.y.s.y.z.txt == "e"