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

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

class C:
    def __init__(self, txt: str):
        self.t: E = None
        self.w: H = None
        self.r: D = None
        self.z: E = None
        self.q: A = None
        self.o: H = None
        self.x: H = None
        self.v: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.u: H = None
        self.t: A = None
        self.x: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: B = None
        self.x: F = None
        self.r: H = None
        self.z: E = None
        self.u: F = None
        self.txt = txt

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

e = A("e")
c = B("c")
h = C("h")
k = D("k")
b = E("b")
m = F("m")
i = G("i")
n = H("n")
f = D("f")
d = H("d")

e.v = b
c.y = d
c.t = e
c.v = e
c.u = e
c.q = e
c.x = i
h.t = b
h.z = b
h.w = d
h.v = d
h.r = f
h.q = e
h.o = n
h.x = n
k.q = b
b.x = e
b.s = d
m.u = n
m.t = e
m.x = h
i.t = c
i.x = m
i.u = m
i.r = d
i.z = b
n.u = m
n.z = m
n.v = i
n.x = i
n.o = c
n.y = e
n.q = d
f.q = b
d.u = m
d.z = m
d.v = i
d.x = i
d.o = c
d.y = e
d.q = n
assert h.r.q.x.txt == "
class A:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: E = None
        self.w: H = None
        self.r: D = None
        self.z: E = None
        self.q: A = None
        self.o: H = None
        self.x: H = None
        self.v: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.u: H = None
        self.t: A = None
        self.x: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: B = None
        self.x: F = None
        self.r: H = None
        self.z: E = None
        self.u: F = None
        self.txt = txt

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

e = A("e")
c = B("c")
h = C("h")
k = D("k")
b = E("b")
m = F("m")
i = G("i")
n = H("n")
f = D("f")
d = H("d")

e.v = b
c.y = d
c.t = e
c.v = e
c.u = e
c.q = e
c.x = i
h.t = b
h.z = b
h.w = d
h.v = d
h.r = f
h.q = e
h.o = n
h.x = n
k.q = b
b.x = e
b.s = d
m.u = n
m.t = e
m.x = h
i.t = c
i.x = m
i.u = m
i.r = d
i.z = b
n.u = m
n.z = m
n.v = i
n.x = i
n.o = c
n.y = e
n.q = d
f.q = b
d.u = m
d.z = m
d.v = i
d.x = i
d.o = c
d.y = e
d.q = n
assert h.r.q.x.txt == "e"