class A:
    def __init__(self, txt: str):
        self.x: E = None
        self.s: E = None
        self.y: F = None
        self.u: B = None
        self.o: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: J = None
        self.v: J = None
        self.t: H = None
        self.y: G = None
        self.q: E = None
        self.w: G = None
        self.x: J = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: J = None
        self.w: F = None
        self.r: C = None
        self.y: J = None
        self.v: H = None
        self.p: I = None
        self.s: C = None
        self.q: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: I = None
        self.v: D = None
        self.x: E = None
        self.u: I = None
        self.t: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: I = None
        self.z: C = None
        self.w: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: A = None
        self.u: I = None
        self.p: I = None
        self.o: J = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.z: I = None
        self.w: G = None
        self.y: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: J = None
        self.v: J = None
        self.t: H = None
        self.y: G = None
        self.q: E = None
        self.w: G = None
        self.x: J = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: J = None
        self.w: F = None
        self.r: C = None
        self.y: J = None
        self.v: H = None
        self.p: I = None
        self.s: C = None
        self.q: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: I = None
        self.v: D = None
        self.x: E = None
        self.u: I = None
        self.t: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: I = None
        self.z: C = None
        self.w: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: A = None
        self.u: I = None
        self.p: I = None
        self.o: J = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.z: I = None
        self.w: G = None
        self.y: D = None
        self.txt = txt

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

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