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