class A:
    def __init__(self, txt: str):
        self.w: E = None
        self.q: G = None
        self.z: F = None
        self.v: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.v: A = None
        self.u: D = None
        self.p: D = None
        self.q: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: B = None
        self.r: I = None
        self.q: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: F = None
        self.y: J = None
        self.u: F = None
        self.p: D = None
        self.s: B = None
        self.q: D = None
        self.w: A = None
        self.v: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: B = None
        self.y: I = None
        self.v: E = None
        self.p: A = None
        self.w: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: A = None
        self.q: B = None
        self.u: G = None
        self.w: A = None
        self.y: I = None
        self.x: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: E = None
        self.q: D = None
        self.u: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: A = None
        self.q: G = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.v: A = None
        self.u: D = None
        self.p: D = None
        self.q: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: B = None
        self.r: I = None
        self.q: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: F = None
        self.y: J = None
        self.u: F = None
        self.p: D = None
        self.s: B = None
        self.q: D = None
        self.w: A = None
        self.v: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: B = None
        self.y: I = None
        self.v: E = None
        self.p: A = None
        self.w: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: A = None
        self.q: B = None
        self.u: G = None
        self.w: A = None
        self.y: I = None
        self.x: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: E = None
        self.q: D = None
        self.u: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: A = None
        self.q: G = None
        self.txt = txt

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

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