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

class B:
    def __init__(self, txt: str):
        self.w: G = None
        self.z: I = None
        self.y: E = None
        self.u: E = None
        self.txt = txt

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

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.u: C = None
        self.x: B = None
        self.w: D = None
        self.p: H = None
        self.s: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: I = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: G = None
        self.z: I = None
        self.y: E = None
        self.u: E = None
        self.txt = txt

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

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.u: C = None
        self.x: B = None
        self.w: D = None
        self.p: H = None
        self.s: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: I = None
        self.txt = txt

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

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