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

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.q: F = None
        self.s: A = None
        self.z: D = None
        self.p: E = None
        self.v: A = None
        self.r: H = None
        self.y: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: J = None
        self.o: F = None
        self.s: H = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.y: J = None
        self.t: E = None
        self.z: C = None
        self.x: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: J = None
        self.q: D = None
        self.x: I = None
        self.r: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: E = None
        self.z: F = None
        self.w: D = None
        self.q: A = None
        self.y: H = None
        self.t: H = None
        self.x: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.q: F = None
        self.s: A = None
        self.z: D = None
        self.p: E = None
        self.v: A = None
        self.r: H = None
        self.y: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: J = None
        self.o: F = None
        self.s: H = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.y: J = None
        self.t: E = None
        self.z: C = None
        self.x: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: J = None
        self.q: D = None
        self.x: I = None
        self.r: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: E = None
        self.z: F = None
        self.w: D = None
        self.q: A = None
        self.y: H = None
        self.t: H = None
        self.x: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: G = None
        self.txt = txt

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

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