class A:
    def __init__(self, txt: str):
        self.v: I = None
        self.x: H = None
        self.s: F = None
        self.p: D = None
        self.z: E = None
        self.r: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: F = None
        self.u: H = None
        self.o: F = None
        self.t: D = None
        self.r: A = None
        self.s: D = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.w: C = None
        self.v: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: D = None
        self.o: E = None
        self.y: A = None
        self.q: F = None
        self.v: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: I = None
        self.y: F = None
        self.w: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: J = None
        self.x: H = None
        self.r: A = None
        self.s: D = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.z: F = None
        self.u: H = None
        self.o: F = None
        self.t: D = None
        self.r: A = None
        self.s: D = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.w: C = None
        self.v: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: D = None
        self.o: E = None
        self.y: A = None
        self.q: F = None
        self.v: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: I = None
        self.y: F = None
        self.w: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: J = None
        self.x: H = None
        self.r: A = None
        self.s: D = None
        self.txt = txt

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

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

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