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

class B:
    def __init__(self, txt: str):
        self.x: J = None
        self.v: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: A = None
        self.r: B = None
        self.t: E = None
        self.u: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: J = None
        self.r: F = None
        self.w: I = None
        self.v: H = None
        self.z: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: B = None
        self.s: A = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.t: E = None
        self.w: H = None
        self.z: I = None
        self.x: I = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: J = None
        self.v: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: A = None
        self.r: B = None
        self.t: E = None
        self.u: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: J = None
        self.r: F = None
        self.w: I = None
        self.v: H = None
        self.z: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: B = None
        self.s: A = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.t: E = None
        self.w: H = None
        self.z: I = None
        self.x: I = None
        self.txt = txt

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

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