class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.o: E = None
        self.y: F = None
        self.s: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.r: J = None
        self.t: A = None
        self.x: B = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.q: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: G = None
        self.r: F = None
        self.p: G = None
        self.w: F = None
        self.q: E = None
        self.z: I = None
        self.x: F = None
        self.y: I = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: E = None
        self.y: F = None
        self.s: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.r: J = None
        self.t: A = None
        self.x: B = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.q: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: G = None
        self.r: F = None
        self.p: G = None
        self.w: F = None
        self.q: E = None
        self.z: I = None
        self.x: F = None
        self.y: I = None
        self.txt = txt

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

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