class A:
    def __init__(self, txt: str):
        self.x: B = None
        self.s: G = None
        self.z: F = None
        self.y: C = None
        self.o: F = None
        self.v: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: A = None
        self.s: F = None
        self.r: E = None
        self.p: G = None
        self.u: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.r: A = None
        self.v: D = None
        self.z: E = None
        self.s: A = None
        self.u: F = None
        self.w: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: B = None
        self.y: C = None
        self.r: G = None
        self.v: C = None
        self.q: G = None
        self.u: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.o: D = None
        self.x: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

h = A("h")
n = B("n")
f = C("f")
k = D("k")
i = E("i")
j = F("j")
a = G("a")
c = H("c")

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

class B:
    def __init__(self, txt: str):
        self.v: A = None
        self.s: F = None
        self.r: E = None
        self.p: G = None
        self.u: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.r: A = None
        self.v: D = None
        self.z: E = None
        self.s: A = None
        self.u: F = None
        self.w: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: B = None
        self.y: C = None
        self.r: G = None
        self.v: C = None
        self.q: G = None
        self.u: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.o: D = None
        self.x: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

h = A("h")
n = B("n")
f = C("f")
k = D("k")
i = E("i")
j = F("j")
a = G("a")
c = H("c")

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