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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.p: D = None
        self.y: B = None
        self.x: J = None
        self.v: I = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.w: F = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.p: D = None
        self.y: B = None
        self.x: J = None
        self.v: I = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.w: F = None
        self.txt = txt

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

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