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

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

class C:
    def __init__(self, txt: str):
        self.y: A = None
        self.w: E = None
        self.p: J = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.u: B = None
        self.v: D = None
        self.t: J = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.s: E = None
        self.o: E = None
        self.v: H = None
        self.p: H = None
        self.w: C = None
        self.z: I = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: A = None
        self.w: E = None
        self.p: J = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.u: B = None
        self.v: D = None
        self.t: J = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.s: E = None
        self.o: E = None
        self.v: H = None
        self.p: H = None
        self.w: C = None
        self.z: I = None
        self.txt = txt

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

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