class A:
    def __init__(self, txt: str):
        self.w: B = None
        self.o: B = None
        self.z: I = None
        self.r: H = None
        self.s: I = None
        self.q: E = None
        self.v: D = None
        self.y: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: J = None
        self.r: F = None
        self.u: J = None
        self.o: A = None
        self.w: H = None
        self.p: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.s: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.q: G = None
        self.p: E = None
        self.u: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: E = None
        self.t: C = None
        self.y: I = None
        self.w: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.r: B = None
        self.t: C = None
        self.s: B = None
        self.q: H = None
        self.u: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: F = None
        self.q: H = None
        self.w: D = None
        self.u: G = None
        self.t: D = None
        self.x: H = None
        self.r: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: J = None
        self.r: F = None
        self.u: J = None
        self.o: A = None
        self.w: H = None
        self.p: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.s: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.q: G = None
        self.p: E = None
        self.u: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: E = None
        self.t: C = None
        self.y: I = None
        self.w: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.r: B = None
        self.t: C = None
        self.s: B = None
        self.q: H = None
        self.u: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: F = None
        self.q: H = None
        self.w: D = None
        self.u: G = None
        self.t: D = None
        self.x: H = None
        self.r: H = None
        self.txt = txt

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

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