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

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

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

class D:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.q: H = None
        self.t: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: I = None
        self.r: B = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.q: H = None
        self.t: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: I = None
        self.r: B = None
        self.txt = txt

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

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

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

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