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

class B:
    def __init__(self, txt: str):
        self.u: I = None
        self.x: F = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.x: H = None
        self.u: H = None
        self.y: D = None
        self.p: J = None
        self.w: E = None
        self.s: J = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: B = None
        self.x: E = None
        self.p: C = None
        self.r: I = None
        self.s: C = None
        self.y: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: A = None
        self.u: F = None
        self.z: G = None
        self.x: C = None
        self.w: G = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: I = None
        self.x: F = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.x: H = None
        self.u: H = None
        self.y: D = None
        self.p: J = None
        self.w: E = None
        self.s: J = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: B = None
        self.x: E = None
        self.p: C = None
        self.r: I = None
        self.s: C = None
        self.y: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: A = None
        self.u: F = None
        self.z: G = None
        self.x: C = None
        self.w: G = None
        self.txt = txt

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

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

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