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