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

class B:
    def __init__(self, txt: str):
        self.y: A = None
        self.r: H = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.r: D = None
        self.y: E = None
        self.q: G = None
        self.o: G = None
        self.v: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: F = None
        self.o: B = None
        self.v: G = None
        self.y: F = None
        self.z: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: A = None
        self.r: H = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.r: D = None
        self.y: E = None
        self.q: G = None
        self.o: G = None
        self.v: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: F = None
        self.o: B = None
        self.v: G = None
        self.y: F = None
        self.z: A = None
        self.txt = txt

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

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