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

class B:
    def __init__(self, txt: str):
        self.q: A = None
        self.y: E = None
        self.s: J = None
        self.v: C = None
        self.z: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: B = None
        self.u: B = None
        self.q: G = None
        self.y: H = None
        self.s: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.q: D = None
        self.o: E = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.w: D = None
        self.r: E = None
        self.p: E = None
        self.o: G = None
        self.y: A = None
        self.q: D = None
        self.u: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.q: A = None
        self.y: E = None
        self.s: J = None
        self.v: C = None
        self.z: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: B = None
        self.u: B = None
        self.q: G = None
        self.y: H = None
        self.s: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.q: D = None
        self.o: E = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.w: D = None
        self.r: E = None
        self.p: E = None
        self.o: G = None
        self.y: A = None
        self.q: D = None
        self.u: F = None
        self.txt = txt

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

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