ST = input() l = len(ST)//2 if ST[:l] == ST[l:] : print("YES") else : print("NO")