S = input() q, r = divmod(len(S), 2) if r == 0 and S[:q] == S[q:]: print("YES") else: print("NO")