s=input() if len(s)%2!=0: print("NO") else: a=s[0:int(len(s)/2)] b=s[int(len(s)/2):len(s)+1] if a==b: print("YES") else: print("NO")