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