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

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

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

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

class E:
    def __init__(self, txt: str):
        self.p: F = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.w: I = None
        self.r: E = None
        self.u: I = None
        self.t: D = None
        self.x: I = None
        self.q: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

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

h.s = b
h.z = d
h.t = d
h.o = d
h.w = m
h.y = m
h.v = k
h.x = g
k.w = d
k.u = b
k.t = h
k.p = h
k.y = f
k.s = a
k.o = e
m.v = f
m.r = a
b.p = m
b.t = h
b.u = k
f.p = g
g.r = a
g.z = m
g.o = m
g.w = d
g.p = e
g.q = f
d.w = f
d.z = m
e.w = l
e.u = l
e.x = l
e.r = f
e.t = b
e.q = b
l.u = h
a.w = d
a.u = b
a.t = h
a.p = h
a.y = f
a.s = k
a.o = e
assert l.u.y.r.u.u.w.z.r.txt == "
class A:
    def __init__(self, txt: str):
        self.s: D = None
        self.z: G = None
        self.w: C = None
        self.v: B = None
        self.y: C = None
        self.t: G = None
        self.x: F = None
        self.o: G = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.p: F = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.w: I = None
        self.r: E = None
        self.u: I = None
        self.t: D = None
        self.x: I = None
        self.q: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

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

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