class A:
    def __init__(self, txt: str):
        self.s: E = None
        self.t: E = None
        self.p: G = None
        self.r: B = None
        self.q: B = None
        self.u: B = None
        self.y: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: H = None
        self.x: F = None
        self.q: H = None
        self.v: D = None
        self.p: D = None
        self.t: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.r: I = None
        self.v: B = None
        self.u: A = None
        self.y: H = None
        self.p: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.t: J = None
        self.r: C = None
        self.o: J = None
        self.s: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: I = None
        self.o: I = None
        self.p: G = None
        self.z: F = None
        self.u: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: I = None
        self.z: J = None
        self.p: C = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.q: J = None
        self.y: H = None
        self.p: J = None
        self.w: E = None
        self.v: F = None
        self.o: B = None
        self.x: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: H = None
        self.x: F = None
        self.q: H = None
        self.v: D = None
        self.p: D = None
        self.t: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.r: I = None
        self.v: B = None
        self.u: A = None
        self.y: H = None
        self.p: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.t: J = None
        self.r: C = None
        self.o: J = None
        self.s: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: I = None
        self.o: I = None
        self.p: G = None
        self.z: F = None
        self.u: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: I = None
        self.z: J = None
        self.p: C = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.q: J = None
        self.y: H = None
        self.p: J = None
        self.w: E = None
        self.v: F = None
        self.o: B = None
        self.x: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

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

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