QOJ.ac

QOJ

Time Limit: 1 s Memory Limit: 1024 MB
Statistics

Given $a$ and $b$ which both fit in $64$-bit signed integers, find $\lfloor \frac{a}{b} \rfloor$ where $\lfloor x \rfloor$ denotes the largest integer which is not larger than $x$.

Input

The input contains zero or more test cases and is terminated by end-of-file.

Each test case contains two integers $a, b$.

  • $-2^{63} \leq a, b < 2^{63}$
  • $b \neq 0$
  • The number of tests cases does not exceed $10^4$.

Output

For each case, output an integer which denotes the result.

Sample Input

3 2
3 -2
-9223372036854775808 1
-9223372036854775808 -1

Sample Output

1
-2
-9223372036854775808
9223372036854775808