S = input() sSize = len(S) half = int(sSize/2) S1 = S[:half] S2 = S[half:] if( S1 == S2 ): print("YES") else: print("NO")