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

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

class C:
    def __init__(self, txt: str):
        self.z: E = None
        self.p: H = None
        self.v: A = None
        self.r: D = None
        self.y: G = None
        self.q: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: F = None
        self.r: G = None
        self.t: E = None
        self.u: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.q: E = None
        self.s: G = None
        self.t: E = None
        self.o: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: C = None
        self.y: B = None
        self.z: A = None
        self.o: G = None
        self.v: H = None
        self.r: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: E = None
        self.p: H = None
        self.v: A = None
        self.r: D = None
        self.y: G = None
        self.q: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: F = None
        self.r: G = None
        self.t: E = None
        self.u: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.q: E = None
        self.s: G = None
        self.t: E = None
        self.o: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: C = None
        self.y: B = None
        self.z: A = None
        self.o: G = None
        self.v: H = None
        self.r: E = None
        self.txt = txt

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

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