class A:
    def __init__(self, txt: str):
        self.w: B = None
        self.v: F = None
        self.o: F = None
        self.u: F = None
        self.p: E = None
        self.q: F = None
        self.z: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.w: D = None
        self.x: C = None
        self.q: G = None
        self.v: E = None
        self.u: J = None
        self.s: F = None
        self.o: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: E = None
        self.y: E = None
        self.u: C = None
        self.p: E = None
        self.v: B = None
        self.z: C = None
        self.t: J = None
        self.x: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.s: I = None
        self.r: B = None
        self.p: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: A = None
        self.v: F = None
        self.y: B = None
        self.s: C = None
        self.z: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: F = None
        self.s: H = None
        self.y: I = None
        self.z: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.w: D = None
        self.x: C = None
        self.q: G = None
        self.v: E = None
        self.u: J = None
        self.s: F = None
        self.o: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: E = None
        self.y: E = None
        self.u: C = None
        self.p: E = None
        self.v: B = None
        self.z: C = None
        self.t: J = None
        self.x: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.s: I = None
        self.r: B = None
        self.p: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: A = None
        self.v: F = None
        self.y: B = None
        self.s: C = None
        self.z: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: F = None
        self.s: H = None
        self.y: I = None
        self.z: G = None
        self.txt = txt

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

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