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

class B:
    def __init__(self, txt: str):
        self.o: F = None
        self.v: D = None
        self.z: E = None
        self.q: H = None
        self.p: A = None
        self.x: G = None
        self.y: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: F = None
        self.s: E = None
        self.p: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.y: F = None
        self.o: E = None
        self.w: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: F = None
        self.q: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: D = None
        self.r: A = None
        self.w: G = None
        self.y: E = None
        self.q: D = None
        self.z: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: C = None
        self.q: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: G = None
        self.x: C = None
        self.q: E = None
        self.s: A = None
        self.z: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: F = None
        self.v: D = None
        self.z: E = None
        self.q: H = None
        self.p: A = None
        self.x: G = None
        self.y: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: F = None
        self.s: E = None
        self.p: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.y: F = None
        self.o: E = None
        self.w: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: F = None
        self.q: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: D = None
        self.r: A = None
        self.w: G = None
        self.y: E = None
        self.q: D = None
        self.z: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: C = None
        self.q: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: G = None
        self.x: C = None
        self.q: E = None
        self.s: A = None
        self.z: A = None
        self.txt = txt

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

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