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

class B:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.t: A = None
        self.o: D = None
        self.z: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.y: A = None
        self.o: B = None
        self.s: G = None
        self.w: I = None
        self.z: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: G = None
        self.s: H = None
        self.x: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: E = None
        self.o: D = None
        self.p: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: E = None
        self.p: B = None
        self.o: G = None
        self.z: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: F = None
        self.p: F = None
        self.t: D = None
        self.y: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: A = None
        self.t: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.t: A = None
        self.o: D = None
        self.z: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.y: A = None
        self.o: B = None
        self.s: G = None
        self.w: I = None
        self.z: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: G = None
        self.s: H = None
        self.x: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: E = None
        self.o: D = None
        self.p: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: E = None
        self.p: B = None
        self.o: G = None
        self.z: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: F = None
        self.p: F = None
        self.t: D = None
        self.y: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: A = None
        self.t: D = None
        self.txt = txt

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

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