Garden
시간 제한2초메모리 제한512 MB
원래 순서를 유지하며 높이가 엄격히 증가하고 볼록한 k개의 식물을 고른다. 임의의 두 선택 식물을 잇는 선분이 사이의 모든 점보다 위에 있어야 하며, 불가능하면 NO를 출력한다.
문제
Farmer Smurf is competing in a contest for most smurfiest garden. He already bought some plants which he put in a row. Each flower has some height measured in centimeters. Farmer wants to choose some subsequence of plants that he can put into evenly spaced holes (without changing order) so that all plants are visible from the front (each next plant is strictly higher than previous one). Since this year is the year of parabolas the contest judges require that the flowers form a convex function (after putting plants into evenly spaced holes each segment connecting the highest points of two plants is strictly above all the plants between them). Help farmer choose plants that fulfill these criteria.
입력
First line of input contains two integers and (, ). is the number of plants, is the number of plants that Farmer wants to choose. Second line of input contains integers (). is the height of th plant bought by Farmer.
출력
On a single line output integers () specifying the numbers of plants that Farmer should choose. Don't forget that the plants must be in original order (). If it is not possible to choose plants satisfying all criteria then on a single line output "NO" (without quotes).