s=input() s1,s2=s[:len(s)//2],s[len(s)//2:] if s1==s2: print("YES") else: print("NO")