class A:
    def __init__(self, txt: str):
        self.s: F = None
        self.r: D = None
        self.x: J = None
        self.v: H = None
        self.z: E = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.z: D = None
        self.p: H = None
        self.r: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: C = None
        self.s: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: D = None
        self.x: I = None
        self.s: J = None
        self.o: I = None
        self.q: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: B = None
        self.v: I = None
        self.t: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: J = None
        self.q: F = None
        self.w: G = None
        self.s: D = None
        self.p: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: D = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.z: D = None
        self.p: H = None
        self.r: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: C = None
        self.s: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: D = None
        self.x: I = None
        self.s: J = None
        self.o: I = None
        self.q: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: B = None
        self.v: I = None
        self.t: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: J = None
        self.q: F = None
        self.w: G = None
        self.s: D = None
        self.p: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: D = None
        self.txt = txt

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

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