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