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

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

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

class D:
    def __init__(self, txt: str):
        self.t: B = None
        self.u: B = None
        self.r: I = None
        self.x: A = None
        self.q: B = None
        self.v: C = None
        self.s: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: G = None
        self.p: J = None
        self.w: D = None
        self.z: F = None
        self.r: C = None
        self.x: B = None
        self.s: C = None
        self.u: D = None
        self.t: I = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.o: F = None
        self.y: A = None
        self.u: J = None
        self.z: D = None
        self.w: E = None
        self.s: H = None
        self.q: G = None
        self.t: G = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.t: B = None
        self.u: B = None
        self.r: I = None
        self.x: A = None
        self.q: B = None
        self.v: C = None
        self.s: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: G = None
        self.p: J = None
        self.w: D = None
        self.z: F = None
        self.r: C = None
        self.x: B = None
        self.s: C = None
        self.u: D = None
        self.t: I = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.o: F = None
        self.y: A = None
        self.u: J = None
        self.z: D = None
        self.w: E = None
        self.s: H = None
        self.q: G = None
        self.t: G = None
        self.txt = txt

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

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

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