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

class B:
    def __init__(self, txt: str):
        self.r: I = None
        self.z: H = None
        self.u: H = None
        self.p: A = None
        self.v: D = None
        self.y: G = None
        self.w: C = None
        self.t: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: F = None
        self.z: C = None
        self.r: E = None
        self.u: J = None
        self.o: I = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.w: D = None
        self.q: C = None
        self.v: J = None
        self.s: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: E = None
        self.y: J = None
        self.z: B = None
        self.x: A = None
        self.o: E = None
        self.u: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: D = None
        self.w: J = None
        self.x: B = None
        self.t: E = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: I = None
        self.z: H = None
        self.u: H = None
        self.p: A = None
        self.v: D = None
        self.y: G = None
        self.w: C = None
        self.t: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: F = None
        self.z: C = None
        self.r: E = None
        self.u: J = None
        self.o: I = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.w: D = None
        self.q: C = None
        self.v: J = None
        self.s: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: E = None
        self.y: J = None
        self.z: B = None
        self.x: A = None
        self.o: E = None
        self.u: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: D = None
        self.w: J = None
        self.x: B = None
        self.t: E = None
        self.txt = txt

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

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

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