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

class B:
    def __init__(self, txt: str):
        self.s: F = None
        self.y: D = None
        self.p: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.x: F = None
        self.u: H = None
        self.q: F = None
        self.y: F = None
        self.w: B = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.z: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: F = None
        self.y: D = None
        self.p: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.x: F = None
        self.u: H = None
        self.q: F = None
        self.y: F = None
        self.w: B = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.z: D = None
        self.txt = txt

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

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