# coding utf-8 s = str(input()) if len(s) % 2 != 0: print("NO") else: if s[:(len(s)/2)] == s[(len(s)/2):]: print("YES") else: print("NO")