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

class B:
    def __init__(self, txt: str):
        self.z: J = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.t: A = None
        self.y: E = None
        self.o: D = None
        self.x: G = None
        self.q: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: H = None
        self.u: G = None
        self.p: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: D = None
        self.p: H = None
        self.u: G = None
        self.x: H = None
        self.q: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: J = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.t: A = None
        self.y: E = None
        self.o: D = None
        self.x: G = None
        self.q: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: H = None
        self.u: G = None
        self.p: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: D = None
        self.p: H = None
        self.u: G = None
        self.x: H = None
        self.q: C = None
        self.txt = txt

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

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