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

class B:
    def __init__(self, txt: str):
        self.y: G = None
        self.o: H = None
        self.u: G = None
        self.t: F = None
        self.x: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: H = None
        self.v: A = None
        self.w: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: B = None
        self.x: J = None
        self.t: D = None
        self.y: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: F = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.y: G = None
        self.o: H = None
        self.u: G = None
        self.t: F = None
        self.x: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: H = None
        self.v: A = None
        self.w: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: B = None
        self.x: J = None
        self.t: D = None
        self.y: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: F = None
        self.txt = txt

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

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

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

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

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