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

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

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

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.p: J = None
        self.w: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: A = None
        self.y: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: E = None
        self.y: H = None
        self.w: C = None
        self.v: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: C = None
        self.t: H = None
        self.y: B = None
        self.z: A = None
        self.o: A = None
        self.w: H = None
        self.q: F = None
        self.v: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: B = None
        self.t: G = None
        self.w: I = None
        self.p: E = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.p: J = None
        self.w: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: A = None
        self.y: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: E = None
        self.y: H = None
        self.w: C = None
        self.v: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: C = None
        self.t: H = None
        self.y: B = None
        self.z: A = None
        self.o: A = None
        self.w: H = None
        self.q: F = None
        self.v: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: B = None
        self.t: G = None
        self.w: I = None
        self.p: E = None
        self.txt = txt

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

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