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

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

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

class D:
    def __init__(self, txt: str):
        self.q: B = None
        self.u: J = None
        self.x: C = None
        self.r: C = None
        self.o: G = None
        self.s: F = None
        self.v: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: G = None
        self.v: D = None
        self.x: B = None
        self.o: C = None
        self.y: D = None
        self.p: G = None
        self.q: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: I = None
        self.o: A = None
        self.u: F = None
        self.v: C = None
        self.t: A = None
        self.s: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: C = None
        self.y: J = None
        self.p: B = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.t: C = None
        self.u: D = None
        self.w: C = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.q: B = None
        self.u: J = None
        self.x: C = None
        self.r: C = None
        self.o: G = None
        self.s: F = None
        self.v: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: G = None
        self.v: D = None
        self.x: B = None
        self.o: C = None
        self.y: D = None
        self.p: G = None
        self.q: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: I = None
        self.o: A = None
        self.u: F = None
        self.v: C = None
        self.t: A = None
        self.s: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: C = None
        self.y: J = None
        self.p: B = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.t: C = None
        self.u: D = None
        self.w: C = None
        self.txt = txt

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

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