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

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

class C:
    def __init__(self, txt: str):
        self.s: I = None
        self.t: F = None
        self.y: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.v: B = None
        self.o: I = None
        self.y: G = None
        self.r: I = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.r: I = None
        self.q: H = None
        self.s: D = None
        self.x: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.r: J = None
        self.z: D = None
        self.q: E = None
        self.x: F = None
        self.w: J = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: I = None
        self.t: F = None
        self.y: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.v: B = None
        self.o: I = None
        self.y: G = None
        self.r: I = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.r: I = None
        self.q: H = None
        self.s: D = None
        self.x: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.r: J = None
        self.z: D = None
        self.q: E = None
        self.x: F = None
        self.w: J = None
        self.txt = txt

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

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

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

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