class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.y: G = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.p: A = None
        self.x: I = None
        self.v: D = None
        self.q: J = None
        self.s: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: A = None
        self.x: A = None
        self.z: H = None
        self.r: I = None
        self.p: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: G = None
        self.p: I = None
        self.z: I = None
        self.t: E = None
        self.s: A = None
        self.txt = txt

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

j.s = b
j.y = f
m.s = a
m.x = a
m.y = j
m.v = j
m.q = n
m.w = c
m.z = c
m.o = e
m.r = e
b.r = a
b.v = n
b.u = m
b.s = m
b.p = e
l.s = j
i.x = a
i.r = l
a.p = j
a.x = c
a.v = l
a.q = e
a.s = m
f.t = j
f.x = j
f.z = n
f.r = c
f.p = b
n.q = a
n.t = a
n.p = a
n.u = a
n.x = j
n.r = l
n.w = c
n.s = c
n.v = i
n.y = f
c.q = e
e.x = f
e.p = c
e.z = c
e.t = i
e.s = j
assert b.p.z.q.s.s.v.txt == "
class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.y: G = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.p: A = None
        self.x: I = None
        self.v: D = None
        self.q: J = None
        self.s: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: A = None
        self.x: A = None
        self.z: H = None
        self.r: I = None
        self.p: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: G = None
        self.p: I = None
        self.z: I = None
        self.t: E = None
        self.s: A = None
        self.txt = txt

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

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