class A:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: E = None
        self.s: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.y: H = None
        self.o: H = None
        self.v: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: G = None
        self.z: G = None
        self.w: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: H = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.u: G = None
        self.o: G = None
        self.t: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: H = None
        self.o: H = None
        self.v: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: G = None
        self.z: G = None
        self.w: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: H = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.u: G = None
        self.o: G = None
        self.t: D = None
        self.txt = txt

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

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