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

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: J = None
        self.z: D = None
        self.q: F = None
        self.v: D = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: J = None
        self.z: D = None
        self.q: F = None
        self.v: D = None
        self.txt = txt

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

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

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

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

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

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

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