class A:
    def __init__(self, txt: str):
        self.w: H = None
        self.z: F = None
        self.q: G = None
        self.p: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: F = None
        self.v: A = None
        self.y: D = None
        self.p: E = None
        self.w: E = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.z: F = None
        self.r: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: E = None
        self.q: A = None
        self.x: B = None
        self.s: F = None
        self.w: B = None
        self.t: J = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: F = None
        self.v: A = None
        self.y: D = None
        self.p: E = None
        self.w: E = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.z: F = None
        self.r: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: E = None
        self.q: A = None
        self.x: B = None
        self.s: F = None
        self.w: B = None
        self.t: J = None
        self.txt = txt

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

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

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