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

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

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.y: E = None
        self.o: D = None
        self.w: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: J = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: H = None
        self.t: G = None
        self.r: A = None
        self.v: G = None
        self.w: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: A = None
        self.q: H = None
        self.v: H = None
        self.u: D = None
        self.o: A = None
        self.w: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: F = None
        self.txt = txt

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

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

e = A("e")
a = B("a")
n = C("n")
f = D("f")
c = E("c")
j = F("j")
g = G("g")
b = H("b")
i = I("i")
k = J("k")

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

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

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.y: E = None
        self.o: D = None
        self.w: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: J = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: H = None
        self.t: G = None
        self.r: A = None
        self.v: G = None
        self.w: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: A = None
        self.q: H = None
        self.v: H = None
        self.u: D = None
        self.o: A = None
        self.w: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: F = None
        self.txt = txt

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

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

e = A("e")
a = B("a")
n = C("n")
f = D("f")
c = E("c")
j = F("j")
g = G("g")
b = H("b")
i = I("i")
k = J("k")

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