data = input() m = int(len(data)/2) if data[0:m] == data[m]: print("YES") else: print("NO")