class A:
    def __init__(self, txt: str):
        self.t: J = None
        self.y: G = None
        self.w: H = None
        self.x: H = None
        self.o: J = None
        self.p: I = None
        self.u: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: H = None
        self.s: A = None
        self.w: J = None
        self.x: E = None
        self.t: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: F = None
        self.u: E = None
        self.x: B = None
        self.v: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: G = None
        self.o: D = None
        self.y: D = None
        self.r: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.t: A = None
        self.s: A = None
        self.o: B = None
        self.r: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: G = None
        self.p: B = None
        self.s: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: B = None
        self.y: F = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.v: H = None
        self.s: A = None
        self.w: J = None
        self.x: E = None
        self.t: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: F = None
        self.u: E = None
        self.x: B = None
        self.v: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: G = None
        self.o: D = None
        self.y: D = None
        self.r: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.t: A = None
        self.s: A = None
        self.o: B = None
        self.r: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: G = None
        self.p: B = None
        self.s: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: B = None
        self.y: F = None
        self.txt = txt

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

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

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