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

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

class C:
    def __init__(self, txt: str):
        self.w: H = None
        self.v: A = None
        self.x: F = None
        self.p: F = None
        self.z: H = None
        self.y: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.z: F = None
        self.t: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: B = None
        self.o: I = None
        self.s: J = None
        self.txt = txt

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

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: H = None
        self.v: A = None
        self.x: F = None
        self.p: F = None
        self.z: H = None
        self.y: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.z: F = None
        self.t: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: B = None
        self.o: I = None
        self.s: J = None
        self.txt = txt

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

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

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

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

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

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