class A:
    def __init__(self, txt: str):
        self.o: C = None
        self.u: H = None
        self.s: B = None
        self.v: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: F = None
        self.y: A = None
        self.q: C = None
        self.r: J = None
        self.w: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: H = None
        self.s: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: C = None
        self.o: J = None
        self.z: E = None
        self.q: I = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.p: F = None
        self.t: H = None
        self.z: H = None
        self.y: I = None
        self.w: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: B = None
        self.t: B = None
        self.s: F = None
        self.r: F = None
        self.x: B = None
        self.v: D = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: F = None
        self.y: A = None
        self.q: C = None
        self.r: J = None
        self.w: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: H = None
        self.s: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: C = None
        self.o: J = None
        self.z: E = None
        self.q: I = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.p: F = None
        self.t: H = None
        self.z: H = None
        self.y: I = None
        self.w: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: B = None
        self.t: B = None
        self.s: F = None
        self.r: F = None
        self.x: B = None
        self.v: D = None
        self.txt = txt

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

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

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

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