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

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

class C:
    def __init__(self, txt: str):
        self.w: D = None
        self.q: G = None
        self.r: E = None
        self.s: F = None
        self.z: H = None
        self.x: E = None
        self.y: F = None
        self.p: H = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.o: F = None
        self.q: C = None
        self.y: A = None
        self.t: C = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: D = None
        self.q: G = None
        self.r: E = None
        self.s: F = None
        self.z: H = None
        self.x: E = None
        self.y: F = None
        self.p: H = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.o: F = None
        self.q: C = None
        self.y: A = None
        self.t: C = None
        self.txt = txt

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

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

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