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