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

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

class C:
    def __init__(self, txt: str):
        self.p: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: I = None
        self.t: H = None
        self.z: J = None
        self.v: D = None
        self.y: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: J = None
        self.q: D = None
        self.y: I = None
        self.u: H = None
        self.t: A = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: I = None
        self.t: H = None
        self.z: J = None
        self.v: D = None
        self.y: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: J = None
        self.q: D = None
        self.y: I = None
        self.u: H = None
        self.t: A = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

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

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