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

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

class C:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: F = None
        self.q: I = None
        self.v: B = None
        self.y: B = None
        self.u: H = None
        self.w: F = None
        self.t: G = None
        self.z: J = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: C = None
        self.t: C = None
        self.r: C = None
        self.v: G = None
        self.x: I = None
        self.p: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: J = None
        self.w: J = None
        self.x: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: F = None
        self.y: I = None
        self.x: A = None
        self.z: G = None
        self.t: I = None
        self.s: J = None
        self.v: C = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.y: G = None
        self.q: H = None
        self.z: D = None
        self.r: I = None
        self.w: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: F = None
        self.q: I = None
        self.v: B = None
        self.y: B = None
        self.u: H = None
        self.w: F = None
        self.t: G = None
        self.z: J = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: C = None
        self.t: C = None
        self.r: C = None
        self.v: G = None
        self.x: I = None
        self.p: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: J = None
        self.w: J = None
        self.x: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: F = None
        self.y: I = None
        self.x: A = None
        self.z: G = None
        self.t: I = None
        self.s: J = None
        self.v: C = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.y: G = None
        self.q: H = None
        self.z: D = None
        self.r: I = None
        self.w: B = None
        self.txt = txt

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

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