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

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.r: A = None
        self.v: G = None
        self.u: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: E = None
        self.o: C = None
        self.t: E = None
        self.y: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: B = None
        self.v: H = None
        self.w: J = None
        self.r: B = None
        self.p: E = None
        self.q: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: J = None
        self.z: A = None
        self.v: G = None
        self.o: D = None
        self.txt = txt

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

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.r: A = None
        self.v: G = None
        self.u: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: E = None
        self.o: C = None
        self.t: E = None
        self.y: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: B = None
        self.v: H = None
        self.w: J = None
        self.r: B = None
        self.p: E = None
        self.q: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: J = None
        self.z: A = None
        self.v: G = None
        self.o: D = None
        self.txt = txt

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

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

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

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