def main(): s = list(input()) if len(s) % 2 != 0: print("NO") else: for i in range(len(s) // 2): if s[i] == s[i + len(s) // 2]: break print("YES") if __name__ == "__main__": main()