class A:
    def __init__(self, txt: str):
        self.v: H = None
        self.x: D = None
        self.t: F = None
        self.y: D = None
        self.z: I = None
        self.u: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.y: F = None
        self.x: J = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.y: H = None
        self.p: J = None
        self.x: F = None
        self.v: J = None
        self.o: G = None
        self.r: A = None
        self.w: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: D = None
        self.z: A = None
        self.x: A = None
        self.r: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: G = None
        self.x: I = None
        self.y: C = None
        self.u: H = None
        self.p: H = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: F = None
        self.x: J = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.y: H = None
        self.p: J = None
        self.x: F = None
        self.v: J = None
        self.o: G = None
        self.r: A = None
        self.w: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: D = None
        self.z: A = None
        self.x: A = None
        self.r: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: G = None
        self.x: I = None
        self.y: C = None
        self.u: H = None
        self.p: H = None
        self.txt = txt

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

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