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

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

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

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

class E:
    def __init__(self, txt: str):
        self.w: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: A = None
        self.z: A = None
        self.x: E = None
        self.r: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.x: B = None
        self.p: D = None
        self.w: D = None
        self.u: F = None
        self.y: G = None
        self.t: J = None
        self.v: B = None
        self.r: J = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.w: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: A = None
        self.z: A = None
        self.x: E = None
        self.r: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.x: B = None
        self.p: D = None
        self.w: D = None
        self.u: F = None
        self.y: G = None
        self.t: J = None
        self.v: B = None
        self.r: J = None
        self.txt = txt

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

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

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