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

class B:
    def __init__(self, txt: str):
        self.t: A = None
        self.s: I = None
        self.q: F = None
        self.o: A = None
        self.y: G = None
        self.w: C = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.t: B = None
        self.z: G = None
        self.p: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: C = None
        self.s: H = None
        self.w: B = None
        self.q: B = None
        self.y: A = None
        self.z: C = None
        self.r: G = None
        self.p: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: B = None
        self.t: A = None
        self.u: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: A = None
        self.s: I = None
        self.q: F = None
        self.o: A = None
        self.y: G = None
        self.w: C = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.t: B = None
        self.z: G = None
        self.p: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: C = None
        self.s: H = None
        self.w: B = None
        self.q: B = None
        self.y: A = None
        self.z: C = None
        self.r: G = None
        self.p: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: B = None
        self.t: A = None
        self.u: G = None
        self.txt = txt

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

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