class A:
    def __init__(self, txt: str):
        self.z: F = None
        self.q: F = None
        self.p: D = None
        self.v: D = None
        self.s: G = None
        self.t: F = None
        self.x: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: F = None
        self.y: E = None
        self.r: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: A = None
        self.u: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: H = None
        self.v: G = None
        self.txt = txt

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

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

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

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

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

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

h.z = n
h.q = n
h.t = n
h.x = n
h.p = a
h.v = a
h.s = k
f.x = n
f.r = n
f.y = g
j.q = e
j.w = e
j.t = e
j.v = c
j.s = c
j.y = d
j.x = d
j.z = k
j.u = n
j.r = g
a.t = h
a.u = k
g.z = d
g.v = k
n.o = f
n.t = f
n.w = j
n.v = g
n.s = g
n.x = k
n.y = k
n.q = d
n.r = d
n.u = e
k.z = a
k.w = a
k.s = a
k.o = h
k.u = h
k.r = h
k.v = d
k.q = c
d.z = j
d.y = a
d.q = k
d.v = k
d.s = c
d.w = f
d.u = h
e.z = k
e.u = k
e.o = d
e.v = g
e.t = j
e.p = f
c.y = k
c.w = f
c.s = g
c.z = d
c.u = a
c.o = n
assert k.s.u.w.t.p.t.s.q.y.txt == "
class A:
    def __init__(self, txt: str):
        self.z: F = None
        self.q: F = None
        self.p: D = None
        self.v: D = None
        self.s: G = None
        self.t: F = None
        self.x: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: F = None
        self.y: E = None
        self.r: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: A = None
        self.u: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: H = None
        self.v: G = None
        self.txt = txt

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

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

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

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

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

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

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