class A:
    def __init__(self, txt: str):
        self.o: C = None
        self.q: B = None
        self.z: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: A = None
        self.q: E = None
        self.v: D = None
        self.y: D = None
        self.w: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: A = None
        self.y: A = None
        self.s: A = None
        self.v: A = None
        self.p: D = None
        self.txt = txt

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

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

h = A("h")
g = B("g")
n = C("n")
l = D("l")
e = E("e")
j = D("j")
i = E("i")
b = B("b")
a = A("a")

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

class B:
    def __init__(self, txt: str):
        self.t: A = None
        self.q: E = None
        self.v: D = None
        self.y: D = None
        self.w: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: A = None
        self.y: A = None
        self.s: A = None
        self.v: A = None
        self.p: D = None
        self.txt = txt

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

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

h = A("h")
g = B("g")
n = C("n")
l = D("l")
e = E("e")
j = D("j")
i = E("i")
b = B("b")
a = A("a")

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