class A:
    def __init__(self, txt: str):
        self.u: E = None
        self.z: F = None
        self.p: G = None
        self.y: C = None
        self.v: B = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.x: H = None
        self.w: C = None
        self.t: A = None
        self.r: F = None
        self.u: I = None
        self.q: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.o: D = None
        self.t: H = None
        self.u: G = None
        self.s: G = None
        self.q: H = None
        self.w: H = None
        self.r: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.txt = txt

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

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

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

n.u = h
n.z = k
n.p = j
n.y = l
n.v = e
e.v = f
e.r = m
e.y = n
e.t = n
e.o = h
e.s = k
l.x = j
l.z = m
b.x = m
b.w = l
b.t = n
b.r = k
b.u = f
b.q = j
h.y = n
h.o = b
h.t = m
h.q = m
h.w = m
h.u = j
h.s = j
h.r = e
d.q = k
d.o = k
d.u = k
d.p = h
d.w = j
d.s = e
d.y = m
j.y = d
m.r = h
m.p = h
m.s = l
m.u = l
m.w = b
m.v = k
m.q = d
m.y = j
m.t = n
f.u = d
f.t = d
f.x = b
f.p = k
f.w = e
f.o = j
k.q = d
k.o = d
k.u = d
k.p = h
k.w = j
k.s = e
k.y = m
assert l.z.s.x.y.q.txt == "
class A:
    def __init__(self, txt: str):
        self.u: E = None
        self.z: F = None
        self.p: G = None
        self.y: C = None
        self.v: B = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.x: H = None
        self.w: C = None
        self.t: A = None
        self.r: F = None
        self.u: I = None
        self.q: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.o: D = None
        self.t: H = None
        self.u: G = None
        self.s: G = None
        self.q: H = None
        self.w: H = None
        self.r: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.txt = txt

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

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

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

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