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

class B:
    def __init__(self, txt: str):
        self.z: E = None
        self.u: F = None
        self.x: G = None
        self.w: D = None
        self.q: G = None
        self.p: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.p: A = None
        self.s: E = None
        self.x: F = None
        self.u: D = None
        self.q: H = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.t: J = None
        self.z: D = None
        self.x: F = None
        self.v: C = None
        self.o: I = None
        self.y: B = None
        self.u: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: G = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.z: E = None
        self.u: F = None
        self.x: G = None
        self.w: D = None
        self.q: G = None
        self.p: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.p: A = None
        self.s: E = None
        self.x: F = None
        self.u: D = None
        self.q: H = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.t: J = None
        self.z: D = None
        self.x: F = None
        self.v: C = None
        self.o: I = None
        self.y: B = None
        self.u: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: G = None
        self.txt = txt

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

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

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