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

class B:
    def __init__(self, txt: str):
        self.s: A = None
        self.o: G = None
        self.z: F = None
        self.q: E = None
        self.t: I = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.s: B = None
        self.q: C = None
        self.y: J = None
        self.x: H = None
        self.r: E = None
        self.p: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: E = None
        self.s: A = None
        self.z: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: D = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: A = None
        self.o: G = None
        self.z: F = None
        self.q: E = None
        self.t: I = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.s: B = None
        self.q: C = None
        self.y: J = None
        self.x: H = None
        self.r: E = None
        self.p: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: E = None
        self.s: A = None
        self.z: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: D = None
        self.txt = txt

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

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

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