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

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

class C:
    def __init__(self, txt: str):
        self.q: H = None
        self.p: J = None
        self.t: J = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: J = None
        self.z: H = None
        self.q: D = None
        self.v: E = None
        self.u: D = None
        self.y: E = None
        self.p: H = None
        self.w: C = None
        self.x: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.t: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: A = None
        self.r: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: C = None
        self.t: F = None
        self.q: C = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: H = None
        self.p: J = None
        self.t: J = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: J = None
        self.z: H = None
        self.q: D = None
        self.v: E = None
        self.u: D = None
        self.y: E = None
        self.p: H = None
        self.w: C = None
        self.x: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.t: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: A = None
        self.r: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: C = None
        self.t: F = None
        self.q: C = None
        self.txt = txt

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

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

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