s = input() judge = False for i in range(len(s)): if (s[:i] == s[i:]): judge = True break if (judge): print("YES") else: print("NO")