s=input() n=len(s) if n%2==1: print("NO") else: if s[:n/2] == s[:n/2]: print("YES") else: print("NO")