s = str(input()) a = s[:int(len(s)/2)] b = s[int(len(s)/2):] if a == b: print("YES") else: print("NO")