class A:
    def __init__(self, txt: str):
        self.v: D = None
        self.z: F = None
        self.u: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: E = None
        self.u: G = None
        self.x: J = None
        self.o: A = None
        self.v: J = None
        self.t: D = None
        self.z: D = None
        self.r: E = None
        self.q: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: I = None
        self.y: J = None
        self.r: E = None
        self.v: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: J = None
        self.p: H = None
        self.q: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: C = None
        self.r: G = None
        self.u: C = None
        self.w: A = None
        self.p: J = None
        self.y: J = None
        self.x: D = None
        self.v: I = None
        self.q: I = None
        self.s: E = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.r: E = None
        self.y: I = None
        self.p: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: E = None
        self.u: G = None
        self.x: J = None
        self.o: A = None
        self.v: J = None
        self.t: D = None
        self.z: D = None
        self.r: E = None
        self.q: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: I = None
        self.y: J = None
        self.r: E = None
        self.v: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: J = None
        self.p: H = None
        self.q: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: C = None
        self.r: G = None
        self.u: C = None
        self.w: A = None
        self.p: J = None
        self.y: J = None
        self.x: D = None
        self.v: I = None
        self.q: I = None
        self.s: E = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.r: E = None
        self.y: I = None
        self.p: H = None
        self.txt = txt

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

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