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

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

class C:
    def __init__(self, txt: str):
        self.v: H = None
        self.z: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: E = None
        self.w: H = None
        self.u: J = None
        self.t: I = None
        self.s: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: J = None
        self.u: H = None
        self.t: G = None
        self.s: D = None
        self.o: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: I = None
        self.v: J = None
        self.z: H = None
        self.q: B = None
        self.x: A = None
        self.p: A = None
        self.u: F = None
        self.o: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: E = None
        self.r: I = None
        self.y: B = None
        self.z: A = None
        self.s: B = None
        self.p: E = None
        self.v: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: A = None
        self.w: F = None
        self.y: C = None
        self.q: B = None
        self.p: H = None
        self.o: E = None
        self.u: A = None
        self.t: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: I = None
        self.s: A = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: H = None
        self.z: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: E = None
        self.w: H = None
        self.u: J = None
        self.t: I = None
        self.s: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: J = None
        self.u: H = None
        self.t: G = None
        self.s: D = None
        self.o: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: I = None
        self.v: J = None
        self.z: H = None
        self.q: B = None
        self.x: A = None
        self.p: A = None
        self.u: F = None
        self.o: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: E = None
        self.r: I = None
        self.y: B = None
        self.z: A = None
        self.s: B = None
        self.p: E = None
        self.v: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: A = None
        self.w: F = None
        self.y: C = None
        self.q: B = None
        self.p: H = None
        self.o: E = None
        self.u: A = None
        self.t: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: I = None
        self.s: A = None
        self.txt = txt

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

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