class A:
    def __init__(self, txt: str):
        self.w: E = None
        self.z: D = None
        self.q: J = None
        self.u: E = None
        self.r: G = None
        self.x: J = None
        self.o: G = None
        self.y: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: I = None
        self.r: J = None
        self.x: I = None
        self.q: J = None
        self.y: C = None
        self.s: E = None
        self.w: G = None
        self.p: C = None
        self.o: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: I = None
        self.s: D = None
        self.t: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.v: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.r: B = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.u: G = None
        self.s: F = None
        self.o: B = None
        self.p: B = None
        self.t: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: H = None
        self.x: D = None
        self.p: C = None
        self.o: G = None
        self.r: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: I = None
        self.r: J = None
        self.x: I = None
        self.q: J = None
        self.y: C = None
        self.s: E = None
        self.w: G = None
        self.p: C = None
        self.o: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: I = None
        self.s: D = None
        self.t: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.v: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.r: B = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.u: G = None
        self.s: F = None
        self.o: B = None
        self.p: B = None
        self.t: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: H = None
        self.x: D = None
        self.p: C = None
        self.o: G = None
        self.r: E = None
        self.txt = txt

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

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