s = input() ans='NO' if len(s) % 2 == 0: if s[0:int(len(s)/2)] == s[int(len(s)/2):]: ans='YES' print(ans)