Covering an equilateral triangle

No attempts yetTime limit1sMemory limit256 MB

Problem

Jieun likes to cover things. This time she wants to cover an equilateral triangle with side length AA completely, using equilateral triangles with side length BB.

You are given two integers AA and BB. Here BAB \le A and AA is divisible by BB. Find the minimum number of triangles with side length BB that are needed to cover the triangle with side length AA completely.

Input

The first line contains the number of test cases TT. (1T10001 \le T \le 1000)

Each of the next TT lines contains two integers AA and BB separated by a space. (1BA1061 \le B \le A \le 10^6, and AA is divisible by BB.)

Output

For each test case, print on its own line the minimum number of triangles with side length BB that are needed to cover the triangle with side length AA completely.