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

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

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.v: B = None
        self.s: G = None
        self.w: C = None
        self.q: H = None
        self.txt = txt

e = A("e")
a = B("a")
m = C("m")
i = D("i")
l = E("l")
b = F("b")
k = G("k")
h = H("h")
n = H("n")
c = E("c")

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

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

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.v: B = None
        self.s: G = None
        self.w: C = None
        self.q: H = None
        self.txt = txt

e = A("e")
a = B("a")
m = C("m")
i = D("i")
l = E("l")
b = F("b")
k = G("k")
h = H("h")
n = H("n")
c = E("c")

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