class A:
    def __init__(self, txt: str):
        self.y: H = None
        self.x: H = None
        self.o: C = None
        self.txt = txt

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.t: E = None
        self.p: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: H = None
        self.o: C = None
        self.s: B = None
        self.y: H = None
        self.v: A = None
        self.x: G = None
        self.u: D = None
        self.r: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: C = None
        self.txt = txt

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

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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.t: E = None
        self.p: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: H = None
        self.o: C = None
        self.s: B = None
        self.y: H = None
        self.v: A = None
        self.x: G = None
        self.u: D = None
        self.r: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: C = None
        self.txt = txt

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

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