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

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.s: D = None
        self.r: G = None
        self.x: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: H = None
        self.t: E = None
        self.o: D = None
        self.q: H = None
        self.s: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: I = None
        self.y: H = None
        self.w: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: C = None
        self.z: C = None
        self.u: J = None
        self.txt = txt

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.y: C = None
        self.s: I = None
        self.u: E = None
        self.z: A = None
        self.p: E = None
        self.x: G = None
        self.r: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.s: D = None
        self.r: G = None
        self.x: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: H = None
        self.t: E = None
        self.o: D = None
        self.q: H = None
        self.s: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: I = None
        self.y: H = None
        self.w: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: C = None
        self.z: C = None
        self.u: J = None
        self.txt = txt

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.y: C = None
        self.s: I = None
        self.u: E = None
        self.z: A = None
        self.p: E = None
        self.x: G = None
        self.r: E = None
        self.txt = txt

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

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