class A:
    def __init__(self, txt: str):
        self.s: I = None
        self.q: H = None
        self.p: H = None
        self.z: I = None
        self.o: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.w: I = None
        self.u: A = None
        self.z: H = None
        self.q: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: A = None
        self.p: C = None
        self.x: I = None
        self.v: G = None
        self.u: G = None
        self.y: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: I = None
        self.v: I = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.q: C = None
        self.s: E = None
        self.r: E = None
        self.t: D = None
        self.w: B = None
        self.y: F = None
        self.o: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: D = None
        self.x: C = None
        self.p: E = None
        self.r: C = None
        self.q: F = None
        self.t: B = None
        self.s: A = None
        self.v: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: I = None
        self.u: A = None
        self.z: H = None
        self.q: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: A = None
        self.p: C = None
        self.x: I = None
        self.v: G = None
        self.u: G = None
        self.y: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: I = None
        self.v: I = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.q: C = None
        self.s: E = None
        self.r: E = None
        self.t: D = None
        self.w: B = None
        self.y: F = None
        self.o: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: D = None
        self.x: C = None
        self.p: E = None
        self.r: C = None
        self.q: F = None
        self.t: B = None
        self.s: A = None
        self.v: D = None
        self.txt = txt

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

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