s=input() b=s[:len(s)//2] a=s[len(s)//2:len(s)] if a==b: print("YES") else: print("NO")