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