class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.q: F = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.p: G = None
        self.v: A = None
        self.t: F = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.w: A = None
        self.q: C = None
        self.v: B = None
        self.y: G = None
        self.s: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: A = None
        self.p: F = None
        self.u: E = None
        self.w: D = None
        self.z: C = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.p: G = None
        self.v: A = None
        self.t: F = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.w: A = None
        self.q: C = None
        self.v: B = None
        self.y: G = None
        self.s: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: A = None
        self.p: F = None
        self.u: E = None
        self.w: D = None
        self.z: C = None
        self.txt = txt

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

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