class A:
    def __init__(self, txt: str):
        self.o: C = None
        self.w: B = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.s: F = None
        self.o: I = None
        self.v: C = None
        self.x: G = None
        self.p: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: D = None
        self.r: D = None
        self.o: H = None
        self.p: J = None
        self.x: B = None
        self.u: A = None
        self.t: B = None
        self.w: J = None
        self.q: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: I = None
        self.v: A = None
        self.x: A = None
        self.p: C = None
        self.txt = txt

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

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

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

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

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

c.o = i
c.w = g
g.z = d
i.r = d
i.v = a
i.o = e
i.u = f
i.q = f
i.s = f
i.z = g
e.s = f
e.p = f
e.o = k
e.v = i
e.x = a
h.v = e
h.r = e
h.o = n
h.p = d
h.w = d
h.x = g
h.t = g
h.u = c
h.q = i
f.r = k
f.v = c
f.x = c
f.p = i
a.u = i
a.z = h
a.t = c
a.x = c
a.v = e
a.y = d
n.z = h
n.q = h
n.x = h
n.t = k
n.o = g
n.w = d
n.s = c
k.w = h
k.r = h
k.z = h
k.t = a
k.y = g
k.x = c
k.s = i
k.v = e
d.t = c
d.x = f
d.z = h
d.y = h
d.q = a
d.o = n
d.r = n
d.w = n
d.u = k
assert f.v.w.z.o.o.z.y.p.t.txt == "
class A:
    def __init__(self, txt: str):
        self.o: C = None
        self.w: B = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.s: F = None
        self.o: I = None
        self.v: C = None
        self.x: G = None
        self.p: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: D = None
        self.r: D = None
        self.o: H = None
        self.p: J = None
        self.x: B = None
        self.u: A = None
        self.t: B = None
        self.w: J = None
        self.q: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: I = None
        self.v: A = None
        self.x: A = None
        self.p: C = None
        self.txt = txt

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

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

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

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

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

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