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

class B:
    def __init__(self, txt: str):
        self.y: D = None
        self.q: E = None
        self.o: A = None
        self.z: I = None
        self.w: J = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: F = None
        self.v: E = None
        self.w: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: A = None
        self.r: G = None
        self.u: G = None
        self.q: A = None
        self.o: D = None
        self.x: G = None
        self.w: D = None
        self.z: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.v: F = None
        self.u: B = None
        self.o: D = None
        self.y: A = None
        self.r: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: B = None
        self.y: E = None
        self.o: C = None
        self.p: G = None
        self.z: B = None
        self.v: J = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.y: D = None
        self.q: E = None
        self.o: A = None
        self.z: I = None
        self.w: J = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: F = None
        self.v: E = None
        self.w: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: A = None
        self.r: G = None
        self.u: G = None
        self.q: A = None
        self.o: D = None
        self.x: G = None
        self.w: D = None
        self.z: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.v: F = None
        self.u: B = None
        self.o: D = None
        self.y: A = None
        self.r: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: B = None
        self.y: E = None
        self.o: C = None
        self.p: G = None
        self.z: B = None
        self.v: J = None
        self.txt = txt

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

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

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