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