class A:
    def __init__(self, txt: str):
        self.o: J = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: J = None
        self.z: J = None
        self.o: H = None
        self.u: A = None
        self.x: H = None
        self.w: F = None
        self.v: H = None
        self.r: E = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.t: A = None
        self.o: D = None
        self.q: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: C = None
        self.z: J = None
        self.v: B = None
        self.q: B = None
        self.p: B = None
        self.s: D = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.s: E = None
        self.v: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: J = None
        self.z: J = None
        self.o: H = None
        self.u: A = None
        self.x: H = None
        self.w: F = None
        self.v: H = None
        self.r: E = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.t: A = None
        self.o: D = None
        self.q: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: C = None
        self.z: J = None
        self.v: B = None
        self.q: B = None
        self.p: B = None
        self.s: D = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.s: E = None
        self.v: H = None
        self.txt = txt

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

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