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

class B:
    def __init__(self, txt: str):
        self.r: A = None
        self.z: D = None
        self.w: H = None
        self.u: G = None
        self.t: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: D = None
        self.s: B = None
        self.p: G = None
        self.x: D = None
        self.r: H = None
        self.y: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: G = None
        self.y: I = None
        self.s: A = None
        self.o: A = None
        self.r: I = None
        self.x: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: C = None
        self.w: A = None
        self.t: I = None
        self.r: B = None
        self.u: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: C = None
        self.p: D = None
        self.o: I = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: A = None
        self.z: D = None
        self.w: H = None
        self.u: G = None
        self.t: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: D = None
        self.s: B = None
        self.p: G = None
        self.x: D = None
        self.r: H = None
        self.y: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: G = None
        self.y: I = None
        self.s: A = None
        self.o: A = None
        self.r: I = None
        self.x: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: C = None
        self.w: A = None
        self.t: I = None
        self.r: B = None
        self.u: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: C = None
        self.p: D = None
        self.o: I = None
        self.txt = txt

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

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

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