a = input() if len(a)%2 != 0: print("NO") else: half = int(len(a)/2) head = a[:half] tail = a[half:] if head==tail: print("YES") else: print("NO")