class A:
    def __init__(self, txt: str):
        self.v: I = None
        self.p: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.u: H = None
        self.q: G = None
        self.p: A = None
        self.w: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: H = None
        self.r: F = None
        self.t: E = None
        self.x: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.t: F = None
        self.y: A = None
        self.q: B = None
        self.w: D = None
        self.x: A = None
        self.p: E = None
        self.r: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: A = None
        self.o: C = None
        self.v: F = None
        self.u: C = None
        self.r: D = None
        self.q: G = None
        self.x: A = None
        self.txt = txt

n = A("n")
e = B("e")
b = C("b")
k = D("k")
l = E("l")
f = F("f")
m = G("m")
d = H("d")
c = I("c")

n.v = c
n.p = d
e.t = m
b.w = f
k.y = c
k.q = c
k.r = c
k.t = d
k.w = l
k.p = l
l.o = e
l.w = e
l.s = e
l.x = e
l.v = f
l.r = f
l.y = f
l.q = f
l.p = m
f.y = k
f.u = d
f.q = m
f.p = n
f.w = c
m.q = d
m.r = f
m.t = l
m.x = c
d.z = f
d.t = f
d.y = n
d.x = n
d.q = e
d.w = k
d.p = l
d.r = b
c.p = n
c.x = n
c.o = b
c.u = b
c.v = f
c.r = k
c.q = m
assert c.o.w.u.p.p.x.r.t.q.txt == "
class A:
    def __init__(self, txt: str):
        self.v: I = None
        self.p: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.u: H = None
        self.q: G = None
        self.p: A = None
        self.w: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: H = None
        self.r: F = None
        self.t: E = None
        self.x: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.t: F = None
        self.y: A = None
        self.q: B = None
        self.w: D = None
        self.x: A = None
        self.p: E = None
        self.r: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: A = None
        self.o: C = None
        self.v: F = None
        self.u: C = None
        self.r: D = None
        self.q: G = None
        self.x: A = None
        self.txt = txt

n = A("n")
e = B("e")
b = C("b")
k = D("k")
l = E("l")
f = F("f")
m = G("m")
d = H("d")
c = I("c")

n.v = c
n.p = d
e.t = m
b.w = f
k.y = c
k.q = c
k.r = c
k.t = d
k.w = l
k.p = l
l.o = e
l.w = e
l.s = e
l.x = e
l.v = f
l.r = f
l.y = f
l.q = f
l.p = m
f.y = k
f.u = d
f.q = m
f.p = n
f.w = c
m.q = d
m.r = f
m.t = l
m.x = c
d.z = f
d.t = f
d.y = n
d.x = n
d.q = e
d.w = k
d.p = l
d.r = b
c.p = n
c.x = n
c.o = b
c.u = b
c.v = f
c.r = k
c.q = m
assert c.o.w.u.p.p.x.r.t.q.txt == "e"