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

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

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

class D:
    def __init__(self, txt: str):
        self.u: H = None
        self.z: E = None
        self.q: C = None
        self.o: G = None
        self.x: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: H = None
        self.z: D = None
        self.o: H = None
        self.p: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: D = None
        self.txt = txt

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

l = A("l")
a = B("a")
j = C("j")
k = D("k")
d = E("d")
i = F("i")
g = G("g")
c = H("c")
e = H("e")
b = D("b")

l.s = j
l.z = g
l.q = d
l.w = d
l.o = d
a.o = d
a.y = g
j.q = l
k.u = c
k.z = d
k.q = j
k.o = g
k.x = e
d.q = e
d.o = e
d.z = k
d.p = i
i.w = a
i.y = d
i.s = d
i.z = j
i.q = g
i.u = e
i.x = k
g.o = k
c.s = i
c.y = i
c.x = b
c.w = e
c.r = d
c.o = a
e.s = i
e.y = i
e.x = b
e.w = c
e.r = d
e.o = a
b.u = e
b.z = d
b.q = j
b.o = g
b.x = c
assert j.q.s.q.q.z.z.q.txt == "
class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.z: G = None
        self.q: E = None
        self.w: E = None
        self.o: E = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.u: H = None
        self.z: E = None
        self.q: C = None
        self.o: G = None
        self.x: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: H = None
        self.z: D = None
        self.o: H = None
        self.p: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: D = None
        self.txt = txt

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

l = A("l")
a = B("a")
j = C("j")
k = D("k")
d = E("d")
i = F("i")
g = G("g")
c = H("c")
e = H("e")
b = D("b")

l.s = j
l.z = g
l.q = d
l.w = d
l.o = d
a.o = d
a.y = g
j.q = l
k.u = c
k.z = d
k.q = j
k.o = g
k.x = e
d.q = e
d.o = e
d.z = k
d.p = i
i.w = a
i.y = d
i.s = d
i.z = j
i.q = g
i.u = e
i.x = k
g.o = k
c.s = i
c.y = i
c.x = b
c.w = e
c.r = d
c.o = a
e.s = i
e.y = i
e.x = b
e.w = c
e.r = d
e.o = a
b.u = e
b.z = d
b.q = j
b.o = g
b.x = c
assert j.q.s.q.q.z.z.q.txt == "e"