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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: C = None
        self.x: G = None
        self.p: E = None
        self.z: I = None
        self.o: J = None
        self.q: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: F = None
        self.r: B = None
        self.q: E = None
        self.t: B = None
        self.o: A = None
        self.p: A = None
        self.v: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: I = None
        self.p: C = None
        self.txt = txt

l = A("l")
h = B("h")
k = C("k")
g = D("g")
a = E("a")
d = F("d")
i = G("i")
j = H("j")
b = I("b")
f = J("f")

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: C = None
        self.x: G = None
        self.p: E = None
        self.z: I = None
        self.o: J = None
        self.q: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: F = None
        self.r: B = None
        self.q: E = None
        self.t: B = None
        self.o: A = None
        self.p: A = None
        self.v: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: I = None
        self.p: C = None
        self.txt = txt

l = A("l")
h = B("h")
k = C("k")
g = D("g")
a = E("a")
d = F("d")
i = G("i")
j = H("j")
b = I("b")
f = J("f")

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