s = str(input()) for i in range(int(len(s)/2)): if s[i] == s[int(len(s)/2)+i] and len(s)%2 == 0: print("YES") break else: print("NO")