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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.x: J = None
        self.u: E = None
        self.q: J = None
        self.s: G = None
        self.z: C = None
        self.w: H = None
        self.y: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: J = None
        self.q: I = None
        self.w: C = None
        self.u: J = None
        self.o: B = None
        self.x: B = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.t: C = None
        self.u: C = None
        self.w: I = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.x: J = None
        self.u: E = None
        self.q: J = None
        self.s: G = None
        self.z: C = None
        self.w: H = None
        self.y: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: J = None
        self.q: I = None
        self.w: C = None
        self.u: J = None
        self.o: B = None
        self.x: B = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.t: C = None
        self.u: C = None
        self.w: I = None
        self.txt = txt

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

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