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