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