S = input() if len(S)%2!=0: print("NO") exit() for i in range(len(S)//2): if S[i]!=S[i+len(S)//2]: print("NO") exit() print("YES")