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

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

class C:
    def __init__(self, txt: str):
        self.r: E = None
        self.s: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: D = None
        self.o: H = None
        self.s: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: C = None
        self.s: F = None
        self.v: D = None
        self.x: G = None
        self.o: G = None
        self.p: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: F = None
        self.v: C = None
        self.r: A = None
        self.q: C = None
        self.y: D = None
        self.u: D = None
        self.x: C = None
        self.z: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: E = None
        self.s: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: D = None
        self.o: H = None
        self.s: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: C = None
        self.s: F = None
        self.v: D = None
        self.x: G = None
        self.o: G = None
        self.p: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: F = None
        self.v: C = None
        self.r: A = None
        self.q: C = None
        self.y: D = None
        self.u: D = None
        self.x: C = None
        self.z: F = None
        self.txt = txt

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

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