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

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

class C:
    def __init__(self, txt: str):
        self.q: I = None
        self.s: J = None
        self.v: B = None
        self.z: J = None
        self.r: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.u: C = None
        self.r: A = None
        self.o: D = None
        self.q: D = None
        self.t: D = None
        self.x: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: F = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: I = None
        self.s: J = None
        self.v: B = None
        self.z: J = None
        self.r: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.u: C = None
        self.r: A = None
        self.o: D = None
        self.q: D = None
        self.t: D = None
        self.x: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: F = None
        self.txt = txt

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

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

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

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