#icpc2016autumnf. [icpc2016autumn_f]Escape from the Hell

[icpc2016autumn_f]Escape from the Hell

MathJax.Hub.Config({ tex2jax: { inlineMath: [["","",""], ["\\(","\\)"]], processEscapes: true }}); blockquote { font-family: Menlo, Monaco, "Courier New", monospace; color: #333333; display: block; padding: 8.5px; margin: 0 0 9px; font-size: 12px; line-height: 18px; background-color: #f5f5f5; border: 1px solid #ccc; border: 1px solid rgba(0, 0, 0, 0.15); -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; white-space: pre; white-space: pre-wrap; word-break: break-all; word-wrap: break-word; }

Problem Statement

One day, Buddha looked into the hell and found an office worker. He did evil, such as enforcing hard work on his subordinates. However, he made only one good in his life. He refused an unreasonable request from his customer to save the lives of his subordinates. Buddha thought that, as the reward of the good, the office worker should have had a chance to escape from the hell. Buddha took a spider silk and put down to the hell.

The office worker climbed up with the spider silk, however the length of the way LL meters was too long to escape one day. He had NN energy drinks and drunk one of them each day. The day he drunk the ii-th energy drink he could climb A_iA\_{i} meters in the daytime and after that slided down B_iB\_{i} meters in the night. If he could reach at the height greater than or equal to the LL meters in the daytime, he could escape without sliding down. After the NN days the silk would be cut.

He realized that other sinners climbed the silk in the night. They climbed C_iC\_{i} meters in the ii-th night without sliding down in the daytime. If they catched up with the office worker, they should have conflicted and the silk would be cut. Therefore he needed to escape before other sinners catched him. Your task is to write a program computing the best order of energy drink and output the earliest day which he could escape. If he could not escape, your program should output 1-1.


Input

The input consists of a single test case.

NN LL
A_1A\_1 B_1B\_1
...
A_NA\_N B_NB\_N
C_1C\_1
...
C_NC\_N

The first line contains two integers NN (1leNle1051 \\le N \\le 10^{5}) and LL (1leLle1091 \\le L \\le 10^{9}), which mean the number of energy drinks and the length of the spider silk respectively. The following NN lines show the information of the drinks: the ii-th of them indicates the ii-th energy drink, he climbed up A_iA\_{i} (1leA_ile1091 \\le A\_{i} \\le 10^{9}) meters and slided down B_iB\_{i} (1leB_ile1091 \\le B\_{i} \\le 10^{9}) meters. Next NN lines show how far other sinners climbed: the ii-th of them contains an integer C_iC\_{i} (1leC_ile1091 \\le C\_{i} \\le 10^{9}), which means they climbed up C_iC\_{i} meters in the ii-th day.

Output

Print the earliest day which he could escape. If he could not escape, print 1-1 instead.



Sample Input 1

3 9
6 3
5 2
3 1
2
2
2```

### Output for the Sample Input 1

```plain
2```

* * *

### Sample Input 2

```plain
5 20
3 2
4 2
6 3
8 4
10 5
4
2
3
4
5```

### Output for the Sample Input 2

```plain
-1```

* * *

### Sample Input 3

```plain
5 20
6 5
7 3
10 3
10 14
4 7
2
5
3
9
2```

### Output for the Sample Input 3

```plain
3```

* * *

### Sample Input 4

```plain
4 12
8 4
6 4
2 1
2 1
1
1
4
4```

### Output for the Sample Input 4

```plain
-1```

* * *