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

class B:
    def __init__(self, txt: str):
        self.r: H = None
        self.y: I = None
        self.o: J = None
        self.u: D = None
        self.t: I = None
        self.z: I = None
        self.q: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.s: B = None
        self.x: H = None
        self.q: F = None
        self.v: B = None
        self.o: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: D = None
        self.q: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: J = None
        self.w: F = None
        self.t: A = None
        self.v: A = None
        self.s: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: F = None
        self.r: C = None
        self.w: H = None
        self.v: G = None
        self.s: E = None
        self.p: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: H = None
        self.y: I = None
        self.o: J = None
        self.u: D = None
        self.t: I = None
        self.z: I = None
        self.q: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.s: B = None
        self.x: H = None
        self.q: F = None
        self.v: B = None
        self.o: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: D = None
        self.q: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: J = None
        self.w: F = None
        self.t: A = None
        self.v: A = None
        self.s: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: F = None
        self.r: C = None
        self.w: H = None
        self.v: G = None
        self.s: E = None
        self.p: C = None
        self.txt = txt

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

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