class A:
    def __init__(self, txt: str):
        self.w: H = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.w: H = None
        self.x: D = None
        self.u: H = None
        self.p: D = None
        self.z: H = None
        self.q: G = None
        self.v: H = None
        self.s: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: G = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.w: H = None
        self.x: D = None
        self.u: H = None
        self.p: D = None
        self.z: H = None
        self.q: G = None
        self.v: H = None
        self.s: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: G = None
        self.txt = txt

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

e.w = j
n.z = d
n.v = e
n.t = e
n.q = a
n.o = c
n.p = j
n.s = j
a.s = e
a.u = g
c.q = g
c.p = b
l.s = j
l.o = a
l.y = n
g.w = j
g.u = j
g.z = j
g.v = j
g.x = c
g.p = c
g.q = d
g.s = e
d.t = c
d.y = l
d.z = a
d.s = g
j.y = d
b.q = g
b.p = c
assert a.s.w.y.z.s.txt == "e"