Adventure#4699

Adventure

0.5 seconds
256 megabytes
Very hard

On a warm spring day, a group of schoolchildren-programmers were exploring the outskirts of a city. Unfortunately, they stumbled into a large and fairly deep pit. How this happened is unclear, but the entire group ended up in the pit.

The pit has a depth of . Each schoolchild knows their shoulder height h_i and the length of their arms l_i. Therefore, if they stand at the bottom of the pit and raise their arms, their palms will reach a height of h_i + l_i from the bottom. The schoolchildren can form a vertical column by standing on each other's shoulders. Any schoolchild can stand on the shoulders of any other. If schoolchild has schoolchildren j_1, j_2, \ldots, j_k standing below them, they can reach a height of h_{j_1} + h_{j_2} + \ldots + h_{j_k} + h_i + l_i.

If a schoolchild can reach the edge of the pit (i.e., h_{j_1} + h_{j_2} + \ldots + h_{j_k} + h_i + l_i \geq H), they can climb out. Schoolchildren who have climbed out of the pit cannot assist those who are still inside. Determine the maximum number of schoolchildren who can climb out of the pit before help arrives, and list their numbers.

Input

The first line of the input file contains a natural number (N \leq 100000) — the number of schoolchildren who fell into the pit. The next lines each contain two integers: the shoulder height of the -th schoolchild h_i and the length of their arms l_i (1 \leq l_i, h_i \leq 10^9). The last line contains an integer — the depth of the pit (1 \leq H \leq 10^9).

Output

In the first line, output — the maximum number of schoolchildren who can climb out of the pit. If K > 0, then in the second line, output their numbers in any order, separated by spaces. The schoolchildren are numbered from one in the order they are given in the input file. If there are multiple solutions, output any one of them.

Examples

Example 1

Loading
Loading