class A:
    def __init__(self, txt: str):
        self.u: E = None
        self.v: I = None
        self.t: E = None
        self.z: C = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: I = None
        self.t: G = None
        self.o: I = None
        self.p: C = None
        self.w: C = None
        self.r: J = None
        self.q: B = None
        self.z: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.v: F = None
        self.x: C = None
        self.t: F = None
        self.r: J = None
        self.w: F = None
        self.u: J = None
        self.y: F = None
        self.z: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: F = None
        self.w: I = None
        self.s: E = None
        self.p: D = None
        self.q: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.y: C = None
        self.q: H = None
        self.r: H = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: I = None
        self.t: G = None
        self.o: I = None
        self.p: C = None
        self.w: C = None
        self.r: J = None
        self.q: B = None
        self.z: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.v: F = None
        self.x: C = None
        self.t: F = None
        self.r: J = None
        self.w: F = None
        self.u: J = None
        self.y: F = None
        self.z: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: F = None
        self.w: I = None
        self.s: E = None
        self.p: D = None
        self.q: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.y: C = None
        self.q: H = None
        self.r: H = None
        self.txt = txt

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

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