class A:
    def __init__(self, txt: str):
        self.s: J = None
        self.u: H = None
        self.w: I = None
        self.y: B = None
        self.z: J = None
        self.r: E = None
        self.o: J = None
        self.t: C = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.y: H = None
        self.p: H = None
        self.q: E = None
        self.s: H = None
        self.w: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: B = None
        self.q: D = None
        self.z: J = None
        self.t: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: E = None
        self.p: I = None
        self.u: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: I = None
        self.r: B = None
        self.q: F = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.o: A = None
        self.p: A = None
        self.w: F = None
        self.q: H = None
        self.t: F = None
        self.s: E = None
        self.txt = txt

n = A("n")
d = B("d")
e = C("e")
a = D("a")
j = E("j")
i = F("i")
b = G("b")
h = H("h")
m = I("m")
g = J("g")

n.s = g
n.z = g
n.o = g
n.u = h
n.w = m
n.y = d
n.r = j
n.t = e
d.v = e
d.z = e
d.x = e
d.u = h
d.w = h
d.t = g
d.s = m
d.q = i
d.r = a
d.p = n
e.x = n
e.z = g
e.r = g
e.q = b
e.v = h
a.y = h
a.p = h
a.s = h
a.q = j
a.w = d
j.s = d
j.q = a
j.z = g
j.t = i
i.o = g
i.w = e
i.v = a
i.p = d
i.x = b
i.s = j
i.u = h
b.o = j
b.p = m
b.u = i
h.y = m
h.r = d
h.q = i
m.z = h
m.s = h
m.p = n
m.u = j
m.q = i
m.v = e
m.w = d
m.x = d
g.o = n
g.p = n
g.w = i
g.t = i
g.q = h
g.s = j
assert e.x.z.t.o.s.t.txt == "
class A:
    def __init__(self, txt: str):
        self.s: J = None
        self.u: H = None
        self.w: I = None
        self.y: B = None
        self.z: J = None
        self.r: E = None
        self.o: J = None
        self.t: C = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.y: H = None
        self.p: H = None
        self.q: E = None
        self.s: H = None
        self.w: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: B = None
        self.q: D = None
        self.z: J = None
        self.t: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: E = None
        self.p: I = None
        self.u: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: I = None
        self.r: B = None
        self.q: F = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.o: A = None
        self.p: A = None
        self.w: F = None
        self.q: H = None
        self.t: F = None
        self.s: E = None
        self.txt = txt

n = A("n")
d = B("d")
e = C("e")
a = D("a")
j = E("j")
i = F("i")
b = G("b")
h = H("h")
m = I("m")
g = J("g")

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