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

class B:
    def __init__(self, txt: str):
        self.q: A = None
        self.w: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: G = None
        self.u: I = None
        self.v: D = None
        self.r: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: I = None
        self.y: I = None
        self.r: B = None
        self.v: C = None
        self.q: A = None
        self.u: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: E = None
        self.u: I = None
        self.s: E = None
        self.y: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: F = None
        self.r: D = None
        self.t: J = None
        self.s: C = None
        self.x: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: J = None
        self.q: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: G = None
        self.s: E = None
        self.r: E = None
        self.v: E = None
        self.u: J = None
        self.txt = txt

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

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

a.x = f
a.s = m
a.o = g
a.y = g
a.w = d
f.q = a
f.w = b
j.s = m
j.u = d
j.r = d
j.v = i
i.s = e
i.o = m
i.r = k
i.v = k
i.q = a
i.y = j
i.u = b
i.t = d
b.s = d
b.y = d
b.r = f
b.v = j
b.q = a
b.u = k
g.q = b
g.s = b
g.u = d
g.y = k
m.o = g
m.r = i
m.x = i
m.t = k
m.s = j
e.u = k
e.q = b
d.x = m
d.s = b
d.r = b
d.v = b
d.u = k
k.w = m
assert i.y.s.t.w.s.s.txt == "
class A:
    def __init__(self, txt: str):
        self.x: B = None
        self.s: G = None
        self.o: F = None
        self.y: F = None
        self.w: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: A = None
        self.w: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: G = None
        self.u: I = None
        self.v: D = None
        self.r: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: I = None
        self.y: I = None
        self.r: B = None
        self.v: C = None
        self.q: A = None
        self.u: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: E = None
        self.u: I = None
        self.s: E = None
        self.y: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: F = None
        self.r: D = None
        self.t: J = None
        self.s: C = None
        self.x: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: J = None
        self.q: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: G = None
        self.s: E = None
        self.r: E = None
        self.v: E = None
        self.u: J = None
        self.txt = txt

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

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

a.x = f
a.s = m
a.o = g
a.y = g
a.w = d
f.q = a
f.w = b
j.s = m
j.u = d
j.r = d
j.v = i
i.s = e
i.o = m
i.r = k
i.v = k
i.q = a
i.y = j
i.u = b
i.t = d
b.s = d
b.y = d
b.r = f
b.v = j
b.q = a
b.u = k
g.q = b
g.s = b
g.u = d
g.y = k
m.o = g
m.r = i
m.x = i
m.t = k
m.s = j
e.u = k
e.q = b
d.x = m
d.s = b
d.r = b
d.v = b
d.u = k
k.w = m
assert i.y.s.t.w.s.s.txt == "m"