s=input() a=len(s)//2 if s[:a]==s[a:]: print("YES") else: print("NO")