class A:
    def __init__(self, txt: str):
        self.t: B = None
        self.x: B = None
        self.s: B = None
        self.u: A = None
        self.q: B = None
        self.z: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: F = None
        self.v: D = None
        self.z: D = None
        self.s: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.w: C = None
        self.p: B = None
        self.t: D = None
        self.o: F = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.r: F = None
        self.t: F = None
        self.u: H = None
        self.x: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: F = None
        self.v: D = None
        self.z: D = None
        self.s: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.w: C = None
        self.p: B = None
        self.t: D = None
        self.o: F = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.r: F = None
        self.t: F = None
        self.u: H = None
        self.x: H = None
        self.txt = txt

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

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