class A:
    def __init__(self, txt: str):
        self.z: B = None
        self.v: C = None
        self.r: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: H = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: E = None
        self.u: B = None
        self.q: G = None
        self.z: D = None
        self.v: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: H = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: E = None
        self.u: B = None
        self.q: G = None
        self.z: D = None
        self.v: E = None
        self.txt = txt

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

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