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