class A:
    def __init__(self, txt: str):
        self.w: I = None
        self.r: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: C = None
        self.r: J = None
        self.w: A = None
        self.v: D = None
        self.q: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: A = None
        self.q: J = None
        self.r: G = None
        self.u: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: H = None
        self.t: E = None
        self.r: A = None
        self.q: F = None
        self.w: F = None
        self.y: F = None
        self.o: H = None
        self.z: J = None
        self.v: E = None
        self.x: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.x: J = None
        self.u: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: H = None
        self.x: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: G = None
        self.u: F = None
        self.o: B = None
        self.z: A = None
        self.r: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: C = None
        self.r: J = None
        self.w: A = None
        self.v: D = None
        self.q: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: A = None
        self.q: J = None
        self.r: G = None
        self.u: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: H = None
        self.t: E = None
        self.r: A = None
        self.q: F = None
        self.w: F = None
        self.y: F = None
        self.o: H = None
        self.z: J = None
        self.v: E = None
        self.x: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.x: J = None
        self.u: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: H = None
        self.x: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: G = None
        self.u: F = None
        self.o: B = None
        self.z: A = None
        self.r: A = None
        self.txt = txt

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

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