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

class B:
    def __init__(self, txt: str):
        self.o: A = None
        self.u: J = None
        self.v: I = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.t: F = None
        self.q: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: B = None
        self.r: A = None
        self.p: G = None
        self.t: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: A = None
        self.p: C = None
        self.x: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: A = None
        self.w: D = None
        self.r: B = None
        self.q: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: E = None
        self.w: G = None
        self.v: D = None
        self.o: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: A = None
        self.u: J = None
        self.v: I = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.t: F = None
        self.q: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: B = None
        self.r: A = None
        self.p: G = None
        self.t: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: A = None
        self.p: C = None
        self.x: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: A = None
        self.w: D = None
        self.r: B = None
        self.q: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: E = None
        self.w: G = None
        self.v: D = None
        self.o: G = None
        self.txt = txt

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

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