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

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

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

class D:
    def __init__(self, txt: str):
        self.r: C = None
        self.v: A = None
        self.s: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: B = None
        self.q: C = None
        self.s: H = None
        self.z: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: B = None
        self.r: H = None
        self.x: B = None
        self.q: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: J = None
        self.x: F = None
        self.z: G = None
        self.u: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: A = None
        self.s: E = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.r: C = None
        self.v: A = None
        self.s: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: B = None
        self.q: C = None
        self.s: H = None
        self.z: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: B = None
        self.r: H = None
        self.x: B = None
        self.q: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: J = None
        self.x: F = None
        self.z: G = None
        self.u: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: A = None
        self.s: E = None
        self.txt = txt

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

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

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