#include using namespace std; int main() { int N, D, T[100], K[100]; cin >> N >> D; assert(1 <= N && N <= 100); assert(1 <= D && D <= 10000000); for(int i = 0; i < N; i++) { cin >> T[i] >> K[i]; assert(1 <= T[i] && T[i] <= 10000000); assert(1 <= K[i] && K[i] <= 10000000); } }