a = input() b = True if not len(a) % 2: if a[: len(a) // 2] == a[-len(a) // 2 :]: b = False print("YNEOS"[b::2])