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

class B:
    def __init__(self, txt: str):
        self.v: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: B = None
        self.w: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.s: C = None
        self.u: E = None
        self.t: F = None
        self.y: C = None
        self.v: F = None
        self.w: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: I = None
        self.q: A = None
        self.w: J = None
        self.s: H = None
        self.z: J = None
        self.p: C = None
        self.u: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: F = None
        self.x: I = None
        self.s: B = None
        self.t: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.o: G = None
        self.q: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: D = None
        self.t: F = None
        self.v: I = None
        self.q: I = None
        self.w: E = None
        self.z: I = None
        self.r: B = None
        self.u: I = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: B = None
        self.w: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.s: C = None
        self.u: E = None
        self.t: F = None
        self.y: C = None
        self.v: F = None
        self.w: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: I = None
        self.q: A = None
        self.w: J = None
        self.s: H = None
        self.z: J = None
        self.p: C = None
        self.u: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: F = None
        self.x: I = None
        self.s: B = None
        self.t: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.o: G = None
        self.q: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: D = None
        self.t: F = None
        self.v: I = None
        self.q: I = None
        self.w: E = None
        self.z: I = None
        self.r: B = None
        self.u: I = None
        self.txt = txt

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

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