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

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

class C:
    def __init__(self, txt: str):
        self.s: J = None
        self.q: G = None
        self.v: A = None
        self.o: J = None
        self.z: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: J = None
        self.u: E = None
        self.x: C = None
        self.y: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.w: J = None
        self.x: C = None
        self.r: I = None
        self.txt = txt

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

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

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: J = None
        self.q: G = None
        self.v: A = None
        self.o: J = None
        self.z: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: J = None
        self.u: E = None
        self.x: C = None
        self.y: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.w: J = None
        self.x: C = None
        self.r: I = None
        self.txt = txt

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

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

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

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

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

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

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