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

class B:
    def __init__(self, txt: str):
        self.x: E = None
        self.y: C = None
        self.z: A = None
        self.r: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: A = None
        self.u: I = None
        self.t: A = None
        self.z: G = None
        self.x: J = None
        self.q: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.z: D = None
        self.w: H = None
        self.v: A = None
        self.o: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: I = None
        self.w: C = None
        self.v: C = None
        self.p: F = None
        self.s: E = None
        self.y: I = None
        self.r: F = None
        self.z: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: I = None
        self.x: E = None
        self.o: F = None
        self.y: I = None
        self.w: I = None
        self.t: G = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.x: E = None
        self.y: C = None
        self.z: A = None
        self.r: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: A = None
        self.u: I = None
        self.t: A = None
        self.z: G = None
        self.x: J = None
        self.q: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.z: D = None
        self.w: H = None
        self.v: A = None
        self.o: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: I = None
        self.w: C = None
        self.v: C = None
        self.p: F = None
        self.s: E = None
        self.y: I = None
        self.r: F = None
        self.z: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: I = None
        self.x: E = None
        self.o: F = None
        self.y: I = None
        self.w: I = None
        self.t: G = None
        self.txt = txt

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

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

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

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