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

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

class C:
    def __init__(self, txt: str):
        self.u: E = None
        self.t: E = None
        self.y: B = None
        self.p: G = None
        self.x: A = None
        self.q: H = None
        self.v: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.q: B = None
        self.z: G = None
        self.u: J = None
        self.p: J = None
        self.o: B = None
        self.x: F = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.x: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: A = None
        self.y: E = None
        self.z: A = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: E = None
        self.t: E = None
        self.y: B = None
        self.p: G = None
        self.x: A = None
        self.q: H = None
        self.v: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.q: B = None
        self.z: G = None
        self.u: J = None
        self.p: J = None
        self.o: B = None
        self.x: F = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.x: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: A = None
        self.y: E = None
        self.z: A = None
        self.txt = txt

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

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

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

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