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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.x: A = None
        self.p: B = None
        self.o: A = None
        self.u: E = None
        self.q: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: I = None
        self.o: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: E = None
        self.x: F = None
        self.y: F = None
        self.w: E = None
        self.t: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: E = None
        self.z: I = None
        self.w: D = None
        self.o: A = None
        self.t: A = None
        self.x: H = None
        self.v: D = None
        self.u: D = None
        self.p: D = None
        self.y: H = None
        self.txt = txt

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

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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.x: A = None
        self.p: B = None
        self.o: A = None
        self.u: E = None
        self.q: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: I = None
        self.o: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: E = None
        self.x: F = None
        self.y: F = None
        self.w: E = None
        self.t: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: E = None
        self.z: I = None
        self.w: D = None
        self.o: A = None
        self.t: A = None
        self.x: H = None
        self.v: D = None
        self.u: D = None
        self.p: D = None
        self.y: H = None
        self.txt = txt

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

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