class A:
    def __init__(self, txt: str):
        self.x: E = None
        self.y: I = None
        self.t: F = None
        self.q: B = None
        self.v: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: F = None
        self.s: D = None
        self.t: B = None
        self.o: J = None
        self.w: F = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.r: H = None
        self.t: C = None
        self.z: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.y: D = None
        self.r: E = None
        self.t: G = None
        self.q: D = None
        self.p: F = None
        self.w: D = None
        self.z: A = None
        self.x: F = None
        self.o: C = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.x: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: F = None
        self.s: D = None
        self.t: B = None
        self.o: J = None
        self.w: F = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.r: H = None
        self.t: C = None
        self.z: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.y: D = None
        self.r: E = None
        self.t: G = None
        self.q: D = None
        self.p: F = None
        self.w: D = None
        self.z: A = None
        self.x: F = None
        self.o: C = None
        self.txt = txt

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

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

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