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

class B:
    def __init__(self, txt: str):
        self.o: F = None
        self.r: G = None
        self.y: J = None
        self.u: I = None
        self.s: D = None
        self.q: D = None
        self.w: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: H = None
        self.u: H = None
        self.z: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.x: F = None
        self.p: C = None
        self.w: J = None
        self.txt = txt

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

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

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: F = None
        self.r: G = None
        self.y: J = None
        self.u: I = None
        self.s: D = None
        self.q: D = None
        self.w: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: H = None
        self.u: H = None
        self.z: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.x: F = None
        self.p: C = None
        self.w: J = None
        self.txt = txt

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

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

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

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

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

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

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

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