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

class B:
    def __init__(self, txt: str):
        self.r: C = None
        self.s: I = None
        self.x: G = None
        self.p: F = None
        self.w: H = None
        self.u: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: J = None
        self.q: G = None
        self.v: D = None
        self.r: E = None
        self.y: E = None
        self.o: E = None
        self.s: B = None
        self.p: E = None
        self.u: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: H = None
        self.q: B = None
        self.v: H = None
        self.x: H = None
        self.t: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: I = None
        self.q: B = None
        self.w: D = None
        self.t: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: C = None
        self.o: B = None
        self.v: A = None
        self.x: C = None
        self.w: F = None
        self.t: E = None
        self.r: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.v: B = None
        self.z: F = None
        self.w: B = None
        self.p: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: A = None
        self.w: B = None
        self.s: A = None
        self.v: A = None
        self.r: G = None
        self.t: B = None
        self.q: G = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: C = None
        self.s: I = None
        self.x: G = None
        self.p: F = None
        self.w: H = None
        self.u: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: J = None
        self.q: G = None
        self.v: D = None
        self.r: E = None
        self.y: E = None
        self.o: E = None
        self.s: B = None
        self.p: E = None
        self.u: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: H = None
        self.q: B = None
        self.v: H = None
        self.x: H = None
        self.t: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: I = None
        self.q: B = None
        self.w: D = None
        self.t: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: C = None
        self.o: B = None
        self.v: A = None
        self.x: C = None
        self.w: F = None
        self.t: E = None
        self.r: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.v: B = None
        self.z: F = None
        self.w: B = None
        self.p: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: A = None
        self.w: B = None
        self.s: A = None
        self.v: A = None
        self.r: G = None
        self.t: B = None
        self.q: G = None
        self.txt = txt

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

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

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