class A:
    def __init__(self, txt: str):
        self.z: D = None
        self.v: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.v: D = None
        self.s: B = None
        self.o: D = None
        self.w: D = None
        self.p: D = None
        self.txt = txt

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

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

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

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

n = A("n")
k = B("k")
m = C("m")
d = D("d")
g = E("g")
a = F("a")
h = G("h")
c = G("c")
i = G("i")
j = B("j")

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

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

class C:
    def __init__(self, txt: str):
        self.v: D = None
        self.s: B = None
        self.o: D = None
        self.w: D = None
        self.p: D = None
        self.txt = txt

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

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

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

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

n = A("n")
k = B("k")
m = C("m")
d = D("d")
g = E("g")
a = F("a")
h = G("h")
c = G("c")
i = G("i")
j = B("j")

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