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

class B:
    def __init__(self, txt: str):
        self.t: I = None
        self.x: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: B = None
        self.y: I = None
        self.u: G = None
        self.w: G = None
        self.r: I = None
        self.v: J = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.v: A = None
        self.q: H = None
        self.y: A = None
        self.w: J = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.w: A = None
        self.t: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: I = None
        self.x: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: B = None
        self.y: I = None
        self.u: G = None
        self.w: G = None
        self.r: I = None
        self.v: J = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.v: A = None
        self.q: H = None
        self.y: A = None
        self.w: J = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.w: A = None
        self.t: E = None
        self.txt = txt

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

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