Cookie Lover

No attempts yetTime limit1sMemory limit256 MB

Problem

Cheolsu likes cookies more than anything else. Wherever there are cookies, Cheolsu is there too. Every day he eats CC of the cookies he holds. If fewer than CC cookies are left, he eats all of them. Given that Cheolsu holds NN cookies, find how many days he eats cookies for.

Input

The first line contains the number of test cases TT. Each of the next TT lines contains one test case: the number of cookies NN that Cheolsu holds and the number of cookies CC he eats each day, separated by a space.

Output

For each test case, print on its own line how many days Cheolsu eats cookies for.

Constraints

  • 0<T<1000 < T < 100
  • 0<N<1,000,000,0000 < N < 1{,}000{,}000{,}000
  • 0<C<5,0000 < C < 5{,}000