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

class B:
    def __init__(self, txt: str):
        self.u: F = None
        self.t: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.w: B = None
        self.z: G = None
        self.v: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.w: F = None
        self.p: A = None
        self.t: A = None
        self.o: C = None
        self.s: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: H = None
        self.p: B = None
        self.y: B = None
        self.t: E = None
        self.z: B = None
        self.s: C = None
        self.o: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.w: H = None
        self.v: F = None
        self.s: B = None
        self.t: H = None
        self.z: H = None
        self.q: E = None
        self.txt = txt

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

n = A("n")
e = B("e")
i = C("i")
g = D("g")
m = E("m")
a = F("a")
l = G("l")
c = H("c")

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

class B:
    def __init__(self, txt: str):
        self.u: F = None
        self.t: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.w: B = None
        self.z: G = None
        self.v: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.w: F = None
        self.p: A = None
        self.t: A = None
        self.o: C = None
        self.s: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: H = None
        self.p: B = None
        self.y: B = None
        self.t: E = None
        self.z: B = None
        self.s: C = None
        self.o: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.w: H = None
        self.v: F = None
        self.s: B = None
        self.t: H = None
        self.z: H = None
        self.q: E = None
        self.txt = txt

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

n = A("n")
e = B("e")
i = C("i")
g = D("g")
m = E("m")
a = F("a")
l = G("l")
c = H("c")

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