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

class B:
    def __init__(self, txt: str):
        self.o: A = None
        self.y: D = None
        self.p: H = None
        self.x: F = None
        self.w: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: B = None
        self.s: F = None
        self.w: A = None
        self.o: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.s: B = None
        self.v: D = None
        self.z: E = None
        self.u: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: I = None
        self.r: E = None
        self.w: I = None
        self.v: C = None
        self.y: C = None
        self.x: B = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: A = None
        self.y: D = None
        self.p: H = None
        self.x: F = None
        self.w: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: B = None
        self.s: F = None
        self.w: A = None
        self.o: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.s: B = None
        self.v: D = None
        self.z: E = None
        self.u: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: I = None
        self.r: E = None
        self.w: I = None
        self.v: C = None
        self.y: C = None
        self.x: B = None
        self.txt = txt

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

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

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