class A:
    def __init__(self, txt: str):
        self.v: F = None
        self.u: E = None
        self.o: B = None
        self.p: I = None
        self.z: D = None
        self.y: C = None
        self.q: F = None
        self.x: F = None
        self.w: E = None
        self.t: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: I = None
        self.t: J = None
        self.o: H = None
        self.w: I = None
        self.x: E = None
        self.y: F = None
        self.z: I = None
        self.u: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: B = None
        self.z: C = None
        self.t: H = None
        self.q: C = None
        self.p: H = None
        self.u: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: A = None
        self.o: F = None
        self.p: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: G = None
        self.w: H = None
        self.q: C = None
        self.y: A = None
        self.p: I = None
        self.u: I = None
        self.s: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: J = None
        self.v: C = None
        self.p: B = None
        self.r: B = None
        self.u: D = None
        self.y: E = None
        self.x: C = None
        self.t: I = None
        self.q: E = None
        self.z: F = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: I = None
        self.t: J = None
        self.o: H = None
        self.w: I = None
        self.x: E = None
        self.y: F = None
        self.z: I = None
        self.u: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: B = None
        self.z: C = None
        self.t: H = None
        self.q: C = None
        self.p: H = None
        self.u: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: A = None
        self.o: F = None
        self.p: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: G = None
        self.w: H = None
        self.q: C = None
        self.y: A = None
        self.p: I = None
        self.u: I = None
        self.s: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: J = None
        self.v: C = None
        self.p: B = None
        self.r: B = None
        self.u: D = None
        self.y: E = None
        self.x: C = None
        self.t: I = None
        self.q: E = None
        self.z: F = None
        self.txt = txt

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

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

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

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