class A:
    def __init__(self, txt: str):
        self.u: B = None
        self.p: B = None
        self.s: E = None
        self.x: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.x: D = None
        self.w: D = None
        self.t: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: J = None
        self.s: A = None
        self.p: I = None
        self.v: G = None
        self.z: B = None
        self.x: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: G = None
        self.p: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: J = None
        self.o: D = None
        self.z: J = None
        self.q: C = None
        self.y: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: C = None
        self.w: F = None
        self.y: J = None
        self.t: C = None
        self.s: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: J = None
        self.x: A = None
        self.q: A = None
        self.r: C = None
        self.z: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.x: D = None
        self.w: D = None
        self.t: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: J = None
        self.s: A = None
        self.p: I = None
        self.v: G = None
        self.z: B = None
        self.x: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: G = None
        self.p: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: J = None
        self.o: D = None
        self.z: J = None
        self.q: C = None
        self.y: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: C = None
        self.w: F = None
        self.y: J = None
        self.t: C = None
        self.s: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: J = None
        self.x: A = None
        self.q: A = None
        self.r: C = None
        self.z: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: E = None
        self.txt = txt

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

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