The first line contains two integers, representing the number of constraints and the upper bound of hidden integer
.
For the followinglines, each line contains two integers
, represents
.
A single line contains an integer, representing the number of positive integers which can suit all given constraints.