s = input() ls = len(s) if ls % 2 != 0: print("NO") else: if s[:int(ls/2)] == s[int(ls/2):]: print("YES") else: print("NO")