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

class B:
    def __init__(self, txt: str):
        self.z: D = None
        self.t: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.z: H = None
        self.t: I = None
        self.v: H = None
        self.o: D = None
        self.r: F = None
        self.p: H = None
        self.s: I = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.v: A = None
        self.u: J = None
        self.r: I = None
        self.o: E = None
        self.q: F = None
        self.x: C = None
        self.w: E = None
        self.t: J = None
        self.txt = txt

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

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

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

l.o = a
d.z = i
d.t = j
a.q = e
a.t = e
a.o = e
a.y = e
a.p = e
a.w = d
a.s = m
a.u = l
a.x = l
a.r = n
i.u = a
i.w = l
i.s = l
i.p = m
i.t = m
i.x = m
i.o = d
i.y = j
i.z = f
e.w = n
e.z = n
e.v = n
e.p = n
e.t = g
e.s = g
e.o = i
e.r = j
j.q = m
j.u = m
j.z = m
j.t = i
j.x = l
j.r = l
j.s = l
j.v = a
j.w = d
f.z = e
f.s = a
f.o = i
f.u = g
f.w = d
f.t = l
n.v = l
n.u = m
n.t = m
n.r = g
n.o = e
n.w = e
n.q = j
n.x = a
g.s = e
g.q = m
g.v = a
g.p = a
g.r = l
g.t = d
m.o = a
m.q = a
m.t = a
m.s = n
m.w = g
m.x = e
m.u = j
m.r = i
m.z = f
assert m.u.v.x.o.w.txt == "
class A:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: D = None
        self.t: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.z: H = None
        self.t: I = None
        self.v: H = None
        self.o: D = None
        self.r: F = None
        self.p: H = None
        self.s: I = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.v: A = None
        self.u: J = None
        self.r: I = None
        self.o: E = None
        self.q: F = None
        self.x: C = None
        self.w: E = None
        self.t: J = None
        self.txt = txt

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

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

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

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