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

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

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.p: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: B = None
        self.r: E = None
        self.v: E = None
        self.u: F = None
        self.o: C = None
        self.s: B = None
        self.x: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: G = None
        self.p: F = None
        self.o: D = None
        self.u: B = None
        self.w: G = None
        self.y: F = None
        self.z: I = None
        self.x: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: B = None
        self.o: I = None
        self.t: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: F = None
        self.o: F = None
        self.u: F = None
        self.z: F = None
        self.p: E = None
        self.y: C = None
        self.x: B = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.p: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: B = None
        self.r: E = None
        self.v: E = None
        self.u: F = None
        self.o: C = None
        self.s: B = None
        self.x: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: G = None
        self.p: F = None
        self.o: D = None
        self.u: B = None
        self.w: G = None
        self.y: F = None
        self.z: I = None
        self.x: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: B = None
        self.o: I = None
        self.t: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: F = None
        self.o: F = None
        self.u: F = None
        self.z: F = None
        self.p: E = None
        self.y: C = None
        self.x: B = None
        self.txt = txt

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

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

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

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