class A:
    def __init__(self, txt: str):
        self.o: D = None
        self.s: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: D = None
        self.w: F = None
        self.r: E = None
        self.x: J = None
        self.z: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: F = None
        self.x: J = None
        self.z: B = None
        self.u: A = None
        self.y: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: E = None
        self.p: G = None
        self.y: G = None
        self.s: G = None
        self.x: J = None
        self.u: H = None
        self.r: J = None
        self.q: J = None
        self.v: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: G = None
        self.v: I = None
        self.s: B = None
        self.p: I = None
        self.z: G = None
        self.x: F = None
        self.o: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: E = None
        self.t: B = None
        self.y: D = None
        self.w: E = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.z: A = None
        self.v: D = None
        self.t: I = None
        self.y: C = None
        self.o: H = None
        self.u: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: D = None
        self.w: F = None
        self.r: E = None
        self.x: J = None
        self.z: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: F = None
        self.x: J = None
        self.z: B = None
        self.u: A = None
        self.y: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: E = None
        self.p: G = None
        self.y: G = None
        self.s: G = None
        self.x: J = None
        self.u: H = None
        self.r: J = None
        self.q: J = None
        self.v: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: G = None
        self.v: I = None
        self.s: B = None
        self.p: I = None
        self.z: G = None
        self.x: F = None
        self.o: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: E = None
        self.t: B = None
        self.y: D = None
        self.w: E = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.z: A = None
        self.v: D = None
        self.t: I = None
        self.y: C = None
        self.o: H = None
        self.u: D = None
        self.txt = txt

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

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