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

class B:
    def __init__(self, txt: str):
        self.u: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.t: G = None
        self.y: E = None
        self.v: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: B = None
        self.z: J = None
        self.p: I = None
        self.x: H = None
        self.w: C = None
        self.v: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: B = None
        self.p: C = None
        self.y: F = None
        self.r: G = None
        self.x: J = None
        self.z: H = None
        self.u: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: A = None
        self.q: J = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: A = None
        self.o: J = None
        self.v: C = None
        self.t: A = None
        self.w: E = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.w: C = None
        self.z: D = None
        self.r: B = None
        self.p: H = None
        self.v: B = None
        self.x: I = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.t: G = None
        self.y: E = None
        self.v: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: B = None
        self.z: J = None
        self.p: I = None
        self.x: H = None
        self.w: C = None
        self.v: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: B = None
        self.p: C = None
        self.y: F = None
        self.r: G = None
        self.x: J = None
        self.z: H = None
        self.u: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: A = None
        self.q: J = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: A = None
        self.o: J = None
        self.v: C = None
        self.t: A = None
        self.w: E = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.w: C = None
        self.z: D = None
        self.r: B = None
        self.p: H = None
        self.v: B = None
        self.x: I = None
        self.txt = txt

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

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