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