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