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

class B:
    def __init__(self, txt: str):
        self.s: F = None
        self.y: J = None
        self.w: A = None
        self.z: A = None
        self.v: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: I = None
        self.v: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.z: B = None
        self.w: B = None
        self.o: E = None
        self.p: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: H = None
        self.t: H = None
        self.u: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.v: D = None
        self.r: D = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.s: H = None
        self.p: I = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: F = None
        self.y: J = None
        self.w: A = None
        self.z: A = None
        self.v: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: I = None
        self.v: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.z: B = None
        self.w: B = None
        self.o: E = None
        self.p: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: H = None
        self.t: H = None
        self.u: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.v: D = None
        self.r: D = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.s: H = None
        self.p: I = None
        self.txt = txt

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

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