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

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

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

class D:
    def __init__(self, txt: str):
        self.x: G = None
        self.q: H = None
        self.o: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.y: F = None
        self.u: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: J = None
        self.z: F = None
        self.s: B = None
        self.q: J = None
        self.p: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: F = None
        self.t: H = None
        self.u: B = None
        self.o: A = None
        self.v: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: I = None
        self.v: C = None
        self.z: E = None
        self.q: E = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.x: G = None
        self.q: H = None
        self.o: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.y: F = None
        self.u: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: J = None
        self.z: F = None
        self.s: B = None
        self.q: J = None
        self.p: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: F = None
        self.t: H = None
        self.u: B = None
        self.o: A = None
        self.v: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: I = None
        self.v: C = None
        self.z: E = None
        self.q: E = None
        self.txt = txt

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

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