class A:
    def __init__(self, txt: str):
        self.z: G = None
        self.x: G = None
        self.r: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: A = None
        self.w: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: B = None
        self.o: C = None
        self.x: A = None
        self.v: E = None
        self.q: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: B = None
        self.z: A = None
        self.u: H = None
        self.y: D = None
        self.t: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: B = None
        self.z: F = None
        self.v: B = None
        self.p: B = None
        self.o: D = None
        self.t: D = None
        self.x: H = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: A = None
        self.w: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: B = None
        self.o: C = None
        self.x: A = None
        self.v: E = None
        self.q: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: B = None
        self.z: A = None
        self.u: H = None
        self.y: D = None
        self.t: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: B = None
        self.z: F = None
        self.v: B = None
        self.p: B = None
        self.o: D = None
        self.t: D = None
        self.x: H = None
        self.txt = txt

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

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

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