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

class B:
    def __init__(self, txt: str):
        self.o: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: G = None
        self.z: B = None
        self.q: A = None
        self.w: A = None
        self.p: G = None
        self.v: A = None
        self.y: A = None
        self.u: G = None
        self.s: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: B = None
        self.r: D = None
        self.x: B = None
        self.q: H = None
        self.v: F = None
        self.s: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: D = None
        self.o: I = None
        self.z: H = None
        self.w: E = None
        self.v: I = None
        self.q: D = None
        self.r: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: A = None
        self.v: I = None
        self.q: I = None
        self.s: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: G = None
        self.x: F = None
        self.v: E = None
        self.y: I = None
        self.r: F = None
        self.q: G = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: G = None
        self.z: B = None
        self.q: A = None
        self.w: A = None
        self.p: G = None
        self.v: A = None
        self.y: A = None
        self.u: G = None
        self.s: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: B = None
        self.r: D = None
        self.x: B = None
        self.q: H = None
        self.v: F = None
        self.s: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: D = None
        self.o: I = None
        self.z: H = None
        self.w: E = None
        self.v: I = None
        self.q: D = None
        self.r: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: A = None
        self.v: I = None
        self.q: I = None
        self.s: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: G = None
        self.x: F = None
        self.v: E = None
        self.y: I = None
        self.r: F = None
        self.q: G = None
        self.txt = txt

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

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

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