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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.y: H = None
        self.x: A = None
        self.q: D = None
        self.v: D = None
        self.w: A = None
        self.o: H = None
        self.s: G = None
        self.p: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: C = None
        self.q: E = None
        self.o: F = None
        self.s: A = None
        self.r: E = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.y: H = None
        self.x: A = None
        self.q: D = None
        self.v: D = None
        self.w: A = None
        self.o: H = None
        self.s: G = None
        self.p: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: C = None
        self.q: E = None
        self.o: F = None
        self.s: A = None
        self.r: E = None
        self.txt = txt

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

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