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