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

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

class C:
    def __init__(self, txt: str):
        self.y: H = None
        self.q: E = None
        self.r: G = None
        self.z: G = None
        self.o: G = None
        self.v: D = None
        self.s: B = None
        self.u: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: A = None
        self.z: G = None
        self.w: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.y: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: H = None
        self.q: A = None
        self.p: A = None
        self.x: H = None
        self.u: A = None
        self.txt = txt

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

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

n = A("n")
k = B("k")
h = C("h")
j = D("j")
a = E("a")
d = F("d")
f = G("f")
i = H("i")
l = I("l")

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

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

class C:
    def __init__(self, txt: str):
        self.y: H = None
        self.q: E = None
        self.r: G = None
        self.z: G = None
        self.o: G = None
        self.v: D = None
        self.s: B = None
        self.u: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: A = None
        self.z: G = None
        self.w: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.y: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: H = None
        self.q: A = None
        self.p: A = None
        self.x: H = None
        self.u: A = None
        self.txt = txt

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

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

n = A("n")
k = B("k")
h = C("h")
j = D("j")
a = E("a")
d = F("d")
f = G("f")
i = H("i")
l = I("l")

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