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

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

class C:
    def __init__(self, txt: str):
        self.u: F = None
        self.z: H = None
        self.s: J = None
        self.q: H = None
        self.w: J = None
        self.r: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: A = None
        self.z: B = None
        self.o: I = None
        self.q: C = None
        self.r: J = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: A = None
        self.t: I = None
        self.u: G = None
        self.v: G = None
        self.y: C = None
        self.o: C = None
        self.p: H = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.t: B = None
        self.x: A = None
        self.r: G = None
        self.y: B = None
        self.w: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: C = None
        self.p: G = None
        self.t: I = None
        self.w: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: F = None
        self.z: H = None
        self.s: J = None
        self.q: H = None
        self.w: J = None
        self.r: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: A = None
        self.z: B = None
        self.o: I = None
        self.q: C = None
        self.r: J = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: A = None
        self.t: I = None
        self.u: G = None
        self.v: G = None
        self.y: C = None
        self.o: C = None
        self.p: H = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.t: B = None
        self.x: A = None
        self.r: G = None
        self.y: B = None
        self.w: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: C = None
        self.p: G = None
        self.t: I = None
        self.w: F = None
        self.txt = txt

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

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