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

class B:
    def __init__(self, txt: str):
        self.v: G = None
        self.o: H = None
        self.p: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: D = None
        self.v: A = None
        self.r: F = None
        self.z: J = None
        self.u: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.q: C = None
        self.y: G = None
        self.t: G = None
        self.z: F = None
        self.u: H = None
        self.x: G = None
        self.o: I = None
        self.w: A = None
        self.s: H = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.y: F = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.v: G = None
        self.o: H = None
        self.p: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: D = None
        self.v: A = None
        self.r: F = None
        self.z: J = None
        self.u: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.q: C = None
        self.y: G = None
        self.t: G = None
        self.z: F = None
        self.u: H = None
        self.x: G = None
        self.o: I = None
        self.w: A = None
        self.s: H = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.y: F = None
        self.txt = txt

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

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

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

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