class A:
    def __init__(self, txt: str):
        self.s: B = None
        self.r: F = None
        self.x: C = None
        self.t: G = None
        self.y: D = None
        self.v: C = None
        self.p: I = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.r: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: H = None
        self.s: C = None
        self.y: A = None
        self.w: G = None
        self.z: F = None
        self.v: D = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.q: H = None
        self.o: G = None
        self.z: B = None
        self.s: H = None
        self.t: G = None
        self.w: E = None
        self.p: F = None
        self.y: F = None
        self.txt = txt

j = A("j")
e = B("e")
g = C("g")
f = D("f")
n = E("n")
d = F("d")
i = G("i")
l = H("l")
h = I("h")
b = E("b")

j.s = e
j.r = d
j.x = g
j.v = g
j.t = i
j.y = f
j.p = h
e.z = g
e.u = g
e.x = j
e.w = j
e.t = d
e.s = n
e.r = h
e.v = l
g.t = i
f.r = h
n.o = l
n.s = g
n.y = j
n.w = i
n.z = d
n.v = f
d.r = h
d.s = e
i.s = f
i.x = d
i.p = d
i.v = d
i.w = l
i.q = e
l.w = d
l.u = h
h.q = l
h.s = l
h.o = i
h.t = i
h.z = e
h.w = n
h.p = d
h.y = d
b.o = l
b.s = g
b.y = j
b.w = i
b.z = d
b.v = f
assert n.w.s.r.s.u.q.w.s.w.txt == "
class A:
    def __init__(self, txt: str):
        self.s: B = None
        self.r: F = None
        self.x: C = None
        self.t: G = None
        self.y: D = None
        self.v: C = None
        self.p: I = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.r: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: H = None
        self.s: C = None
        self.y: A = None
        self.w: G = None
        self.z: F = None
        self.v: D = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.q: H = None
        self.o: G = None
        self.z: B = None
        self.s: H = None
        self.t: G = None
        self.w: E = None
        self.p: F = None
        self.y: F = None
        self.txt = txt

j = A("j")
e = B("e")
g = C("g")
f = D("f")
n = E("n")
d = F("d")
i = G("i")
l = H("l")
h = I("h")
b = E("b")

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