class A:
    def __init__(self, txt: str):
        self.w: D = None
        self.x: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: F = None
        self.s: E = None
        self.z: J = None
        self.v: H = None
        self.t: F = None
        self.u: J = None
        self.p: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: A = None
        self.s: D = None
        self.y: F = None
        self.r: J = None
        self.x: G = None
        self.q: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: I = None
        self.o: G = None
        self.y: H = None
        self.x: G = None
        self.w: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.s: F = None
        self.w: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: F = None
        self.s: E = None
        self.z: J = None
        self.v: H = None
        self.t: F = None
        self.u: J = None
        self.p: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: A = None
        self.s: D = None
        self.y: F = None
        self.r: J = None
        self.x: G = None
        self.q: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: I = None
        self.o: G = None
        self.y: H = None
        self.x: G = None
        self.w: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.s: F = None
        self.w: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: G = None
        self.txt = txt

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

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