class A:
    def __init__(self, txt: str):
        self.o: C = None
        self.z: I = None
        self.r: I = None
        self.s: H = None
        self.t: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.x: G = None
        self.o: I = None
        self.r: I = None
        self.p: F = None
        self.y: D = None
        self.q: A = None
        self.s: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: A = None
        self.x: C = None
        self.s: C = None
        self.t: A = None
        self.v: E = None
        self.y: H = None
        self.q: E = None
        self.o: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: D = None
        self.v: G = None
        self.u: G = None
        self.z: D = None
        self.p: G = None
        self.t: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: A = None
        self.o: C = None
        self.p: B = None
        self.r: G = None
        self.t: G = None
        self.y: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: G = None
        self.p: A = None
        self.z: D = None
        self.y: F = None
        self.x: B = None
        self.r: B = None
        self.u: B = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.x: G = None
        self.o: I = None
        self.r: I = None
        self.p: F = None
        self.y: D = None
        self.q: A = None
        self.s: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: A = None
        self.x: C = None
        self.s: C = None
        self.t: A = None
        self.v: E = None
        self.y: H = None
        self.q: E = None
        self.o: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: D = None
        self.v: G = None
        self.u: G = None
        self.z: D = None
        self.p: G = None
        self.t: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: A = None
        self.o: C = None
        self.p: B = None
        self.r: G = None
        self.t: G = None
        self.y: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: G = None
        self.p: A = None
        self.z: D = None
        self.y: F = None
        self.x: B = None
        self.r: B = None
        self.u: B = None
        self.txt = txt

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

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

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