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