class A:
    def __init__(self, txt: str):
        self.w: G = None
        self.s: I = None
        self.r: B = None
        self.t: B = None
        self.z: I = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.x: I = None
        self.o: H = None
        self.y: I = None
        self.t: F = None
        self.q: E = None
        self.u: H = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: D = None
        self.w: I = None
        self.o: I = None
        self.q: C = None
        self.y: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: C = None
        self.w: F = None
        self.y: D = None
        self.txt = txt

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

n.w = b
n.s = a
n.z = a
n.r = e
n.t = e
e.s = g
e.t = g
e.u = g
e.z = j
e.q = j
e.o = n
e.r = i
e.w = d
j.x = g
j.o = g
j.w = d
j.t = a
j.p = a
j.q = b
j.z = b
j.r = b
l.x = a
l.y = a
l.o = d
l.u = d
l.t = g
l.q = i
i.p = l
i.s = l
i.w = l
i.u = e
i.q = j
i.x = d
i.t = n
i.o = n
g.y = d
g.w = d
g.r = a
g.x = e
g.q = j
g.p = b
g.o = i
b.r = e
d.s = l
d.w = a
d.o = a
d.q = j
d.y = n
a.x = j
a.w = g
a.y = l
assert l.x.w.o.w.u.y.txt == "
class A:
    def __init__(self, txt: str):
        self.w: G = None
        self.s: I = None
        self.r: B = None
        self.t: B = None
        self.z: I = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.x: I = None
        self.o: H = None
        self.y: I = None
        self.t: F = None
        self.q: E = None
        self.u: H = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: D = None
        self.w: I = None
        self.o: I = None
        self.q: C = None
        self.y: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: C = None
        self.w: F = None
        self.y: D = None
        self.txt = txt

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

n.w = b
n.s = a
n.z = a
n.r = e
n.t = e
e.s = g
e.t = g
e.u = g
e.z = j
e.q = j
e.o = n
e.r = i
e.w = d
j.x = g
j.o = g
j.w = d
j.t = a
j.p = a
j.q = b
j.z = b
j.r = b
l.x = a
l.y = a
l.o = d
l.u = d
l.t = g
l.q = i
i.p = l
i.s = l
i.w = l
i.u = e
i.q = j
i.x = d
i.t = n
i.o = n
g.y = d
g.w = d
g.r = a
g.x = e
g.q = j
g.p = b
g.o = i
b.r = e
d.s = l
d.w = a
d.o = a
d.q = j
d.y = n
a.x = j
a.w = g
a.y = l
assert l.x.w.o.w.u.y.txt == "n"