S = input() i = len(S)//2 if S[:i] == S[i:]: print("YES") else: print("NO")