class A:
    def __init__(self, txt: str):
        self.s: F = None
        self.r: A = None
        self.z: A = None
        self.t: F = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.w: D = None
        self.q: E = None
        self.t: F = None
        self.o: A = None
        self.v: E = None
        self.y: F = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.x: C = None
        self.w: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: B = None
        self.p: F = None
        self.r: A = None
        self.x: C = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.w: D = None
        self.q: E = None
        self.t: F = None
        self.o: A = None
        self.v: E = None
        self.y: F = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.x: C = None
        self.w: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: B = None
        self.p: F = None
        self.r: A = None
        self.x: C = None
        self.txt = txt

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

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