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

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

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

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

class E:
    def __init__(self, txt: str):
        self.z: B = None
        self.x: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: H = None
        self.s: E = None
        self.y: H = None
        self.p: B = None
        self.z: B = None
        self.u: D = None
        self.txt = txt

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

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.z: B = None
        self.x: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: H = None
        self.s: E = None
        self.y: H = None
        self.p: B = None
        self.z: B = None
        self.u: D = None
        self.txt = txt

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

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

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

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