s = input() N = len(s) print("YES") if N % 2 == 0 and s[:N//2] == s[N//2:] else print("NO")