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

class B:
    def __init__(self, txt: str):
        self.u: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: E = None
        self.x: E = None
        self.r: F = None
        self.y: E = None
        self.t: D = None
        self.w: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: D = None
        self.o: H = None
        self.u: E = None
        self.w: B = None
        self.s: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: A = None
        self.v: E = None
        self.r: A = None
        self.u: A = None
        self.y: A = None
        self.q: H = None
        self.o: A = None
        self.s: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.z: A = None
        self.w: A = None
        self.o: G = None
        self.y: G = None
        self.t: D = None
        self.s: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: E = None
        self.x: E = None
        self.r: F = None
        self.y: E = None
        self.t: D = None
        self.w: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: D = None
        self.o: H = None
        self.u: E = None
        self.w: B = None
        self.s: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: A = None
        self.v: E = None
        self.r: A = None
        self.u: A = None
        self.y: A = None
        self.q: H = None
        self.o: A = None
        self.s: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.z: A = None
        self.w: A = None
        self.o: G = None
        self.y: G = None
        self.t: D = None
        self.s: D = None
        self.txt = txt

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

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