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