class A:
    def __init__(self, txt: str):
        self.v: C = None
        self.x: E = None
        self.s: F = None
        self.y: I = None
        self.z: E = None
        self.p: I = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: D = None
        self.s: B = None
        self.t: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: E = None
        self.y: H = None
        self.t: F = None
        self.s: C = None
        self.r: C = None
        self.u: A = None
        self.w: B = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: D = None
        self.s: B = None
        self.t: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: E = None
        self.y: H = None
        self.t: F = None
        self.s: C = None
        self.r: C = None
        self.u: A = None
        self.w: B = None
        self.txt = txt

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

m.v = a
m.x = d
m.z = d
m.s = g
m.y = j
m.p = j
c.x = j
c.s = n
c.q = a
a.w = k
a.s = b
a.z = b
a.p = b
a.u = n
a.r = m
a.v = g
a.t = j
n.u = k
d.w = n
d.s = c
d.t = g
g.p = k
g.r = c
g.z = n
b.w = a
k.v = d
j.p = d
j.y = k
j.t = g
j.s = a
j.r = a
j.u = m
j.w = c
assert n.u.v.s.s.txt == "n"