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

class B:
    def __init__(self, txt: str):
        self.s: G = None
        self.v: H = None
        self.x: I = None
        self.q: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.q: A = None
        self.s: D = None
        self.w: A = None
        self.p: D = None
        self.o: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.t: C = None
        self.y: D = None
        self.s: I = None
        self.w: B = None
        self.v: C = None
        self.u: D = None
        self.p: I = None
        self.z: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.v: B = None
        self.s: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: G = None
        self.v: H = None
        self.x: I = None
        self.q: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.q: A = None
        self.s: D = None
        self.w: A = None
        self.p: D = None
        self.o: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.t: C = None
        self.y: D = None
        self.s: I = None
        self.w: B = None
        self.v: C = None
        self.u: D = None
        self.p: I = None
        self.z: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.v: B = None
        self.s: H = None
        self.txt = txt

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

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