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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.o: B = None
        self.q: I = None
        self.u: C = None
        self.x: B = None
        self.w: A = None
        self.y: G = None
        self.s: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: C = None
        self.v: I = None
        self.y: B = None
        self.q: D = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.o: B = None
        self.q: I = None
        self.u: C = None
        self.x: B = None
        self.w: A = None
        self.y: G = None
        self.s: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: C = None
        self.v: I = None
        self.y: B = None
        self.q: D = None
        self.txt = txt

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

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

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

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

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