class A:
    def __init__(self, txt: str):
        self.w: H = None
        self.z: C = None
        self.p: C = None
        self.u: H = None
        self.t: E = None
        self.y: C = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.y: H = None
        self.v: G = None
        self.o: J = None
        self.t: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: H = None
        self.q: C = None
        self.t: H = None
        self.w: E = None
        self.v: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: F = None
        self.o: B = None
        self.v: B = None
        self.p: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.q: D = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.y: H = None
        self.v: G = None
        self.o: J = None
        self.t: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: H = None
        self.q: C = None
        self.t: H = None
        self.w: E = None
        self.v: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: F = None
        self.o: B = None
        self.v: B = None
        self.p: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.q: D = None
        self.txt = txt

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

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