class A:
    def __init__(self, txt: str):
        self.w: E = None
        self.v: B = None
        self.o: G = None
        self.t: D = None
        self.p: C = None
        self.y: I = None
        self.z: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: G = None
        self.r: E = None
        self.z: F = None
        self.u: H = None
        self.s: G = None
        self.w: E = None
        self.o: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: E = None
        self.p: I = None
        self.y: G = None
        self.w: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: G = None
        self.y: C = None
        self.t: G = None
        self.z: E = None
        self.o: A = None
        self.u: A = None
        self.v: A = None
        self.x: E = None
        self.txt = txt

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: G = None
        self.r: E = None
        self.z: F = None
        self.u: H = None
        self.s: G = None
        self.w: E = None
        self.o: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: E = None
        self.p: I = None
        self.y: G = None
        self.w: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: G = None
        self.y: C = None
        self.t: G = None
        self.z: E = None
        self.o: A = None
        self.u: A = None
        self.v: A = None
        self.x: E = None
        self.txt = txt

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

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

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

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

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