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

class B:
    def __init__(self, txt: str):
        self.y: G = None
        self.s: A = None
        self.o: G = None
        self.t: D = None
        self.z: H = None
        self.x: A = None
        self.p: H = None
        self.v: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: G = None
        self.w: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.v: H = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.y: G = None
        self.s: A = None
        self.o: G = None
        self.t: D = None
        self.z: H = None
        self.x: A = None
        self.p: H = None
        self.v: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: G = None
        self.w: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.v: H = None
        self.txt = txt

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

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

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