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

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

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

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

class E:
    def __init__(self, txt: str):
        self.w: D = None
        self.p: D = None
        self.u: G = None
        self.q: A = None
        self.x: H = None
        self.r: C = None
        self.o: C = None
        self.v: J = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.x: E = None
        self.w: I = None
        self.txt = txt

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

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.w: D = None
        self.p: D = None
        self.u: G = None
        self.q: A = None
        self.x: H = None
        self.r: C = None
        self.o: C = None
        self.v: J = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.x: E = None
        self.w: I = None
        self.txt = txt

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

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

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

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