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

class B:
    def __init__(self, txt: str):
        self.q: A = None
        self.v: H = None
        self.p: I = None
        self.o: E = None
        self.s: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: F = None
        self.s: E = None
        self.t: H = None
        self.x: A = None
        self.z: F = None
        self.p: J = None
        self.q: D = None
        self.y: B = None
        self.w: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.y: A = None
        self.q: D = None
        self.p: I = None
        self.x: I = None
        self.s: J = None
        self.w: D = None
        self.t: H = None
        self.o: F = None
        self.z: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: E = None
        self.q: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: B = None
        self.y: B = None
        self.u: B = None
        self.z: D = None
        self.o: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: H = None
        self.o: G = None
        self.v: E = None
        self.t: B = None
        self.x: G = None
        self.w: B = None
        self.y: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.q: A = None
        self.v: H = None
        self.p: I = None
        self.o: E = None
        self.s: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: F = None
        self.s: E = None
        self.t: H = None
        self.x: A = None
        self.z: F = None
        self.p: J = None
        self.q: D = None
        self.y: B = None
        self.w: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.y: A = None
        self.q: D = None
        self.p: I = None
        self.x: I = None
        self.s: J = None
        self.w: D = None
        self.t: H = None
        self.o: F = None
        self.z: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: E = None
        self.q: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: B = None
        self.y: B = None
        self.u: B = None
        self.z: D = None
        self.o: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: H = None
        self.o: G = None
        self.v: E = None
        self.t: B = None
        self.x: G = None
        self.w: B = None
        self.y: F = None
        self.txt = txt

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

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