class A:
    def __init__(self, txt: str):
        self.u: H = None
        self.z: H = None
        self.q: G = None
        self.v: C = None
        self.y: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: H = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.p: G = None
        self.v: E = None
        self.txt = txt

i = A("i")
e = B("e")
d = C("d")
n = D("n")
a = E("a")
j = F("j")
h = G("h")
k = H("k")
l = D("l")
m = G("m")

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

class B:
    def __init__(self, txt: str):
        self.r: H = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.p: G = None
        self.v: E = None
        self.txt = txt

i = A("i")
e = B("e")
d = C("d")
n = D("n")
a = E("a")
j = F("j")
h = G("h")
k = H("k")
l = D("l")
m = G("m")

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