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

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

class C:
    def __init__(self, txt: str):
        self.w: I = None
        self.z: G = None
        self.u: J = None
        self.r: G = None
        self.s: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: I = None
        self.r: A = None
        self.y: I = None
        self.v: E = None
        self.s: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: A = None
        self.q: E = None
        self.t: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.o: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: D = None
        self.w: B = None
        self.y: B = None
        self.z: B = None
        self.q: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: C = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: I = None
        self.z: G = None
        self.u: J = None
        self.r: G = None
        self.s: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: I = None
        self.r: A = None
        self.y: I = None
        self.v: E = None
        self.s: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: A = None
        self.q: E = None
        self.t: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.o: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: D = None
        self.w: B = None
        self.y: B = None
        self.z: B = None
        self.q: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: C = None
        self.txt = txt

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

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