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

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

class C:
    def __init__(self, txt: str):
        self.q: D = None
        self.u: D = None
        self.txt = txt

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

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

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.x: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: D = None
        self.u: D = None
        self.txt = txt

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

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

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.x: B = None
        self.txt = txt

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

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