class A:
    def __init__(self, txt: str):
        self.s: B = None
        self.p: F = None
        self.z: G = None
        self.r: B = None
        self.t: I = None
        self.y: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: F = None
        self.q: H = None
        self.s: J = None
        self.t: H = None
        self.w: I = None
        self.o: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: F = None
        self.y: F = None
        self.p: B = None
        self.z: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: A = None
        self.y: D = None
        self.p: D = None
        self.u: F = None
        self.s: J = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.y: F = None
        self.q: H = None
        self.s: J = None
        self.t: H = None
        self.w: I = None
        self.o: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: F = None
        self.y: F = None
        self.p: B = None
        self.z: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: A = None
        self.y: D = None
        self.p: D = None
        self.u: F = None
        self.s: J = None
        self.txt = txt

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

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

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

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

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