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

class B:
    def __init__(self, txt: str):
        self.r: C = None
        self.u: H = None
        self.o: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: D = None
        self.s: G = None
        self.y: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: F = None
        self.o: J = None
        self.s: E = None
        self.t: G = None
        self.u: F = None
        self.z: I = None
        self.p: F = None
        self.y: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: B = None
        self.v: B = None
        self.z: B = None
        self.x: B = None
        self.s: D = None
        self.o: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: I = None
        self.w: A = None
        self.q: F = None
        self.y: A = None
        self.z: B = None
        self.p: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.x: G = None
        self.z: J = None
        self.v: C = None
        self.y: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: H = None
        self.y: I = None
        self.p: H = None
        self.z: B = None
        self.v: B = None
        self.w: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: C = None
        self.u: H = None
        self.o: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: D = None
        self.s: G = None
        self.y: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: F = None
        self.o: J = None
        self.s: E = None
        self.t: G = None
        self.u: F = None
        self.z: I = None
        self.p: F = None
        self.y: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: B = None
        self.v: B = None
        self.z: B = None
        self.x: B = None
        self.s: D = None
        self.o: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: I = None
        self.w: A = None
        self.q: F = None
        self.y: A = None
        self.z: B = None
        self.p: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.x: G = None
        self.z: J = None
        self.v: C = None
        self.y: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: H = None
        self.y: I = None
        self.p: H = None
        self.z: B = None
        self.v: B = None
        self.w: F = None
        self.txt = txt

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

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