word = input() if len(word)%2!=0: print("NO") exit() else: if word[0:len(word)//2] == word[len(word)//2:]: print("YES") else: print("NO")