class A:
    def __init__(self, txt: str):
        self.o: B = None
        self.v: I = None
        self.p: B = None
        self.z: H = None
        self.x: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.z: F = None
        self.t: G = None
        self.p: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: I = None
        self.r: I = None
        self.p: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: C = None
        self.z: C = None
        self.v: G = None
        self.r: H = None
        self.u: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.s: E = None
        self.v: E = None
        self.r: C = None
        self.p: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.z: F = None
        self.t: G = None
        self.p: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: I = None
        self.r: I = None
        self.p: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: C = None
        self.z: C = None
        self.v: G = None
        self.r: H = None
        self.u: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.s: E = None
        self.v: E = None
        self.r: C = None
        self.p: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: A = None
        self.txt = txt

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

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