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

class B:
    def __init__(self, txt: str):
        self.z: G = None
        self.y: G = None
        self.u: A = None
        self.s: E = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.v: A = None
        self.u: C = None
        self.y: D = None
        self.z: D = None
        self.w: A = None
        self.o: B = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.z: G = None
        self.y: G = None
        self.u: A = None
        self.s: E = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.v: A = None
        self.u: C = None
        self.y: D = None
        self.z: D = None
        self.w: A = None
        self.o: B = None
        self.txt = txt

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

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

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

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