class A:
    def __init__(self, txt: str):
        self.z: D = None
        self.t: G = None
        self.o: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.s: A = None
        self.x: E = None
        self.o: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: F = None
        self.o: F = None
        self.w: J = None
        self.r: I = None
        self.q: G = None
        self.x: A = None
        self.t: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: I = None
        self.v: F = None
        self.y: B = None
        self.s: D = None
        self.q: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.v: E = None
        self.x: I = None
        self.z: F = None
        self.q: I = None
        self.w: F = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.v: A = None
        self.r: C = None
        self.y: I = None
        self.txt = txt

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

j.z = h
j.t = c
j.o = d
l.v = g
l.r = g
l.u = h
l.o = k
l.y = k
l.t = b
l.z = n
l.w = a
b.s = j
b.x = g
b.o = d
h.z = d
h.o = d
h.t = d
h.w = k
h.r = a
h.q = c
h.x = j
g.z = a
g.v = d
g.q = d
g.y = l
g.s = h
d.z = l
d.r = b
d.w = g
c.y = d
c.z = d
c.w = d
c.v = g
c.x = a
c.q = a
n.y = g
n.t = j
n.v = h
a.z = g
a.v = h
k.v = j
k.r = b
k.y = a
assert j.o.w.s.q.v.y.r.v.z.o.txt == "
class A:
    def __init__(self, txt: str):
        self.z: D = None
        self.t: G = None
        self.o: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.s: A = None
        self.x: E = None
        self.o: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: F = None
        self.o: F = None
        self.w: J = None
        self.r: I = None
        self.q: G = None
        self.x: A = None
        self.t: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: I = None
        self.v: F = None
        self.y: B = None
        self.s: D = None
        self.q: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.v: E = None
        self.x: I = None
        self.z: F = None
        self.q: I = None
        self.w: F = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.v: A = None
        self.r: C = None
        self.y: I = None
        self.txt = txt

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

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