S=input() if len(S)%2 ==1: print("NO") exit() else: print("YES" if S[0:len(S)//2]==S[len(S)//2:] else "NO")