S = input() N = len(S) if N%2 != 0: exit(print('NO')) for i in range(N//2): if S[i] != S[i + N//2]: exit(print('NO')) print('YES')