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