class A:
    def __init__(self, txt: str):
        self.t: I = None
        self.v: G = None
        self.q: H = None
        self.o: J = None
        self.r: G = None
        self.p: B = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.p: A = None
        self.q: B = None
        self.z: I = None
        self.w: I = None
        self.s: J = None
        self.t: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: C = None
        self.o: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: E = None
        self.u: G = None
        self.y: J = None
        self.t: E = None
        self.txt = txt

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

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.p: A = None
        self.q: B = None
        self.z: I = None
        self.w: I = None
        self.s: J = None
        self.t: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: C = None
        self.o: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: E = None
        self.u: G = None
        self.y: J = None
        self.t: E = None
        self.txt = txt

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

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

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

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