S=input() if len(S)%2!=0: print("NO") else: if S[0:len(S)//2] == S[len(S)//2:len(S)]: print("YES") else: print("NO")