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