
Fax McClad, Croneria's most talented bounty hunter, is competing in a sandwich making competition!
Fax is required to make
All sandwiches are identical. In particular, the
However, sandwiches that are left in the open, waiting to be delivered, will rot. In particular, if a sandwich is left out in the open for more than
In order to prevent this, Fax has a super powerful gamma wave oven that can zap one sandwich in
However, the gamma wave oven is expensive to use, so Fax wants to use it as little as possible. Can you tell Fax the minimum number of times he will need to use the gamma wave oven?
Constraints
It is guaranteed that each judge can get a distinct sandwich. That is,
Subtask | Percentage | Additional Constraints |
---|---|---|
No additional constraints. |
Input Specification
The first line of input will contain
Output Specification
On a single line, output the minimum number of times Fax needs to use the gamma wave oven.
Sample Input
5 10
1 1
2 32
12 33
50 61
51 70
Sample Output
5
Explanation for Sample Output
Sandwich
Sandwich
Sandwich
Sandwich
Sandwich
In total,
Comments