class A:
    def __init__(self, txt: str):
        self.w: C = None
        self.u: B = None
        self.o: I = None
        self.r: B = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.o: J = None
        self.y: G = None
        self.u: C = None
        self.w: G = None
        self.x: E = None
        self.s: G = None
        self.z: G = None
        self.t: A = None
        self.r: G = None
        self.p: J = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: I = None
        self.q: J = None
        self.t: B = None
        self.z: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: A = None
        self.t: G = None
        self.z: E = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.o: J = None
        self.y: G = None
        self.u: C = None
        self.w: G = None
        self.x: E = None
        self.s: G = None
        self.z: G = None
        self.t: A = None
        self.r: G = None
        self.p: J = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: I = None
        self.q: J = None
        self.t: B = None
        self.z: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: A = None
        self.t: G = None
        self.z: E = None
        self.txt = txt

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

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