class A:
    def __init__(self, txt: str):
        self.s: H = None
        self.t: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: F = None
        self.x: C = None
        self.w: G = None
        self.q: G = None
        self.r: H = None
        self.v: E = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.s: C = None
        self.v: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: D = None
        self.v: F = None
        self.z: F = None
        self.w: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.r: E = None
        self.w: D = None
        self.q: F = None
        self.v: B = None
        self.o: D = None
        self.s: D = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: F = None
        self.x: C = None
        self.w: G = None
        self.q: G = None
        self.r: H = None
        self.v: E = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.s: C = None
        self.v: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: D = None
        self.v: F = None
        self.z: F = None
        self.w: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.r: E = None
        self.w: D = None
        self.q: F = None
        self.v: B = None
        self.o: D = None
        self.s: D = None
        self.txt = txt

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

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

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

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