class A:
    def __init__(self, txt: str):
        self.u: G = None
        self.q: F = None
        self.w: C = None
        self.o: B = None
        self.p: H = None
        self.v: J = None
        self.x: H = None
        self.r: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.v: D = None
        self.w: I = None
        self.o: D = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.z: I = None
        self.r: I = None
        self.w: H = None
        self.t: A = None
        self.u: C = None
        self.o: F = None
        self.q: J = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: A = None
        self.r: E = None
        self.q: H = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: D = None
        self.w: I = None
        self.o: D = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.z: I = None
        self.r: I = None
        self.w: H = None
        self.t: A = None
        self.u: C = None
        self.o: F = None
        self.q: J = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: A = None
        self.r: E = None
        self.q: H = None
        self.txt = txt

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

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

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