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