class A:
    def __init__(self, txt: str):
        self.t: H = None
        self.q: F = None
        self.o: H = None
        self.u: G = None
        self.z: H = None
        self.w: F = None
        self.s: C = None
        self.v: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.t: A = None
        self.u: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.o: H = None
        self.s: A = None
        self.t: H = None
        self.u: E = None
        self.r: A = None
        self.x: G = None
        self.txt = txt

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.t: A = None
        self.u: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.o: H = None
        self.s: A = None
        self.t: H = None
        self.u: E = None
        self.r: A = None
        self.x: G = None
        self.txt = txt

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

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

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

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

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