class A:
    def __init__(self, txt: str):
        self.v: I = None
        self.q: H = None
        self.z: H = None
        self.w: G = None
        self.s: G = None
        self.o: J = None
        self.r: G = None
        self.y: I = None
        self.t: B = None
        self.u: G = None
        self.txt = txt

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

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

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.x: H = None
        self.y: E = None
        self.o: F = None
        self.p: J = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.x: H = None
        self.y: E = None
        self.o: F = None
        self.p: J = None
        self.txt = txt

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

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

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