class A:
    def __init__(self, txt: str):
        self.y: E = None
        self.v: J = None
        self.r: J = None
        self.z: F = None
        self.u: H = None
        self.s: B = None
        self.t: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: A = None
        self.z: E = None
        self.s: H = None
        self.w: J = None
        self.x: G = None
        self.q: F = None
        self.r: J = None
        self.y: J = None
        self.v: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.y: B = None
        self.x: C = None
        self.t: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: E = None
        self.o: D = None
        self.x: G = None
        self.p: E = None
        self.s: J = None
        self.q: J = None
        self.w: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: B = None
        self.o: C = None
        self.w: J = None
        self.x: E = None
        self.p: B = None
        self.u: J = None
        self.q: H = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.v: F = None
        self.z: D = None
        self.s: G = None
        self.u: F = None
        self.y: I = None
        self.q: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: A = None
        self.z: E = None
        self.s: H = None
        self.w: J = None
        self.x: G = None
        self.q: F = None
        self.r: J = None
        self.y: J = None
        self.v: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.y: B = None
        self.x: C = None
        self.t: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: E = None
        self.o: D = None
        self.x: G = None
        self.p: E = None
        self.s: J = None
        self.q: J = None
        self.w: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: B = None
        self.o: C = None
        self.w: J = None
        self.x: E = None
        self.p: B = None
        self.u: J = None
        self.q: H = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.v: F = None
        self.z: D = None
        self.s: G = None
        self.u: F = None
        self.y: I = None
        self.q: D = None
        self.txt = txt

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

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