class A:
    def __init__(self, txt: str):
        self.w: H = None
        self.p: G = None
        self.t: H = None
        self.q: D = None
        self.v: G = None
        self.s: B = None
        self.r: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: A = None
        self.r: H = None
        self.x: A = None
        self.y: A = None
        self.o: F = None
        self.q: H = None
        self.t: D = None
        self.txt = txt

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

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

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: A = None
        self.r: H = None
        self.x: A = None
        self.y: A = None
        self.o: F = None
        self.q: H = None
        self.t: D = None
        self.txt = txt

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

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

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

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

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

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

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

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