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

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

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

class D:
    def __init__(self, txt: str):
        self.q: I = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.v: C = None
        self.r: B = None
        self.q: D = None
        self.y: G = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.q: I = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.v: C = None
        self.r: B = None
        self.q: D = None
        self.y: G = None
        self.txt = txt

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

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

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

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