class A:
    def __init__(self, txt: str):
        self.w: I = None
        self.t: H = None
        self.o: B = None
        self.u: H = None
        self.z: J = None
        self.p: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.x: A = None
        self.r: I = None
        self.v: G = None
        self.s: F = None
        self.y: C = None
        self.p: G = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.t: G = None
        self.z: C = None
        self.x: I = None
        self.s: I = None
        self.q: I = None
        self.o: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.x: A = None
        self.r: I = None
        self.v: G = None
        self.s: F = None
        self.y: C = None
        self.p: G = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.t: G = None
        self.z: C = None
        self.x: I = None
        self.s: I = None
        self.q: I = None
        self.o: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

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

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

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

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

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