class A:
    def __init__(self, txt: str):
        self.r: D = None
        self.z: E = None
        self.s: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: I = None
        self.o: I = None
        self.s: H = None
        self.z: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: J = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: I = None
        self.x: J = None
        self.s: H = None
        self.z: D = None
        self.p: A = None
        self.o: G = None
        self.y: A = None
        self.t: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: G = None
        self.p: E = None
        self.s: H = None
        self.z: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: F = None
        self.t: H = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.v: I = None
        self.o: I = None
        self.s: H = None
        self.z: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: J = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: I = None
        self.x: J = None
        self.s: H = None
        self.z: D = None
        self.p: A = None
        self.o: G = None
        self.y: A = None
        self.t: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: G = None
        self.p: E = None
        self.s: H = None
        self.z: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: F = None
        self.t: H = None
        self.txt = txt

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

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

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

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

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