s = list(input()) if s[:len(s)//2] == s[len(s)//2:]: print('YES') else: print('NO')