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

class B:
    def __init__(self, txt: str):
        self.z: F = None
        self.w: C = None
        self.q: A = None
        self.o: C = None
        self.y: E = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.p: B = None
        self.o: B = None
        self.r: C = None
        self.z: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: A = None
        self.o: H = None
        self.t: A = None
        self.q: F = None
        self.y: J = None
        self.z: F = None
        self.w: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: C = None
        self.p: F = None
        self.q: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: F = None
        self.w: C = None
        self.q: A = None
        self.o: C = None
        self.y: E = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.p: B = None
        self.o: B = None
        self.r: C = None
        self.z: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: A = None
        self.o: H = None
        self.t: A = None
        self.q: F = None
        self.y: J = None
        self.z: F = None
        self.w: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: C = None
        self.p: F = None
        self.q: A = None
        self.txt = txt

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

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