class A:
    def __init__(self, txt: str):
        self.q: F = None
        self.o: H = None
        self.w: B = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.s: J = None
        self.x: C = None
        self.u: D = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.s: J = None
        self.x: C = None
        self.u: D = None
        self.txt = txt

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

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

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

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

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

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