class A:
    def __init__(self, txt: str):
        self.q: D = None
        self.p: B = None
        self.u: G = None
        self.v: E = None
        self.w: E = None
        self.x: I = None
        self.y: H = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.q: J = None
        self.o: I = None
        self.t: G = None
        self.p: J = None
        self.r: G = None
        self.v: F = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.v: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: J = None
        self.s: B = None
        self.y: G = None
        self.x: F = None
        self.t: J = None
        self.r: B = None
        self.o: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: E = None
        self.z: E = None
        self.p: F = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.q: J = None
        self.o: I = None
        self.t: G = None
        self.p: J = None
        self.r: G = None
        self.v: F = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.v: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: J = None
        self.s: B = None
        self.y: G = None
        self.x: F = None
        self.t: J = None
        self.r: B = None
        self.o: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: E = None
        self.z: E = None
        self.p: F = None
        self.txt = txt

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

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