class A:
    def __init__(self, txt: str):
        self.v: D = None
        self.t: J = None
        self.r: G = None
        self.p: C = None
        self.u: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: H = None
        self.r: E = None
        self.x: J = None
        self.p: D = None
        self.v: J = None
        self.u: G = None
        self.q: D = None
        self.s: E = None
        self.w: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.z: C = None
        self.r: C = None
        self.y: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: B = None
        self.s: C = None
        self.y: D = None
        self.t: E = None
        self.txt = txt

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.z: H = None
        self.r: E = None
        self.x: J = None
        self.p: D = None
        self.v: J = None
        self.u: G = None
        self.q: D = None
        self.s: E = None
        self.w: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.z: C = None
        self.r: C = None
        self.y: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: B = None
        self.s: C = None
        self.y: D = None
        self.t: E = None
        self.txt = txt

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

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

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

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

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

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