s = input() if len(s) % 2 == 1: print("NO") exit() for i in range(len(s)//2): if s[i] != s[i+len(s)//2]: print("NO") exit() print("YES")