x=str(input()) for i in range(x): if str[i]*2==x: re="YES" if re=="YES": print(re) else: print("NO")