class A:
    def __init__(self, txt: str):
        self.r: F = None
        self.y: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: H = None
        self.u: F = None
        self.o: J = None
        self.v: H = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.r: E = None
        self.v: C = None
        self.z: J = None
        self.o: E = None
        self.q: A = None
        self.u: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: A = None
        self.q: F = None
        self.v: D = None
        self.x: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: C = None
        self.q: F = None
        self.t: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: E = None
        self.z: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: H = None
        self.u: F = None
        self.o: J = None
        self.v: H = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.r: E = None
        self.v: C = None
        self.z: J = None
        self.o: E = None
        self.q: A = None
        self.u: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: A = None
        self.q: F = None
        self.v: D = None
        self.x: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: C = None
        self.q: F = None
        self.t: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: E = None
        self.z: D = None
        self.txt = txt

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

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