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

class B:
    def __init__(self, txt: str):
        self.s: G = None
        self.y: G = None
        self.t: D = None
        self.z: J = None
        self.u: D = None
        self.o: G = None
        self.q: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.u: J = None
        self.x: G = None
        self.o: B = None
        self.r: I = None
        self.v: J = None
        self.p: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: C = None
        self.t: C = None
        self.v: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.w: A = None
        self.y: D = None
        self.p: H = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: G = None
        self.y: G = None
        self.t: D = None
        self.z: J = None
        self.u: D = None
        self.o: G = None
        self.q: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.u: J = None
        self.x: G = None
        self.o: B = None
        self.r: I = None
        self.v: J = None
        self.p: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: C = None
        self.t: C = None
        self.v: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.w: A = None
        self.y: D = None
        self.p: H = None
        self.txt = txt

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

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

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

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

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