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

class B:
    def __init__(self, txt: str):
        self.o: A = None
        self.y: J = None
        self.u: H = None
        self.v: A = None
        self.x: E = None
        self.r: H = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.s: A = None
        self.p: I = None
        self.w: B = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: A = None
        self.y: J = None
        self.u: H = None
        self.v: A = None
        self.x: E = None
        self.r: H = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.s: A = None
        self.p: I = None
        self.w: B = None
        self.txt = txt

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

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

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

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