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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.y: A = None
        self.s: I = None
        self.x: I = None
        self.z: H = None
        self.w: E = None
        self.u: H = None
        self.v: C = None
        self.o: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: B = None
        self.u: E = None
        self.x: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: C = None
        self.q: E = None
        self.txt = txt

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

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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.y: A = None
        self.s: I = None
        self.x: I = None
        self.z: H = None
        self.w: E = None
        self.u: H = None
        self.v: C = None
        self.o: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: B = None
        self.u: E = None
        self.x: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: C = None
        self.q: E = None
        self.txt = txt

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

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