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

class B:
    def __init__(self, txt: str):
        self.s: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: A = None
        self.z: J = None
        self.p: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: H = None
        self.s: I = None
        self.v: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: I = None
        self.s: B = None
        self.t: A = None
        self.o: H = None
        self.x: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: I = None
        self.w: E = None
        self.q: A = None
        self.x: A = None
        self.v: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: C = None
        self.q: E = None
        self.z: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.w: G = None
        self.p: A = None
        self.v: B = None
        self.x: J = None
        self.q: J = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: A = None
        self.z: J = None
        self.p: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: H = None
        self.s: I = None
        self.v: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: I = None
        self.s: B = None
        self.t: A = None
        self.o: H = None
        self.x: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: I = None
        self.w: E = None
        self.q: A = None
        self.x: A = None
        self.v: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: C = None
        self.q: E = None
        self.z: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.w: G = None
        self.p: A = None
        self.v: B = None
        self.x: J = None
        self.q: J = None
        self.txt = txt

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

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

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