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

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

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

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

class E:
    def __init__(self, txt: str):
        self.v: E = None
        self.t: A = None
        self.z: A = None
        self.q: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.z: G = None
        self.w: B = None
        self.u: C = None
        self.y: E = None
        self.q: E = None
        self.r: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: E = None
        self.u: E = None
        self.v: B = None
        self.p: B = None
        self.w: H = None
        self.txt = txt

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

e = A("e")
n = B("n")
l = C("l")
d = D("d")
b = E("b")
a = F("a")
h = G("h")
g = H("g")
i = A("i")
j = E("j")

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.v: E = None
        self.t: A = None
        self.z: A = None
        self.q: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.z: G = None
        self.w: B = None
        self.u: C = None
        self.y: E = None
        self.q: E = None
        self.r: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: E = None
        self.u: E = None
        self.v: B = None
        self.p: B = None
        self.w: H = None
        self.txt = txt

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

e = A("e")
n = B("n")
l = C("l")
d = D("d")
b = E("b")
a = F("a")
h = G("h")
g = H("g")
i = A("i")
j = E("j")

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