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