class A:
    def __init__(self, txt: str):
        self.w: J = None
        self.o: B = None
        self.u: B = None
        self.p: I = None
        self.r: G = None
        self.s: E = None
        self.z: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: F = None
        self.q: J = None
        self.r: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: A = None
        self.o: D = None
        self.z: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.v: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: I = None
        self.u: D = None
        self.v: A = None
        self.p: F = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.z: F = None
        self.q: J = None
        self.r: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: A = None
        self.o: D = None
        self.z: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.v: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: I = None
        self.u: D = None
        self.v: A = None
        self.p: F = None
        self.txt = txt

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

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

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

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