Problem1537--Simple Arithmetic

1537: Simple Arithmetic

[Creator : ]
Time Limit : 1 sec  Memory Limit : 128 MB

Description

Given a and b which both fit in 64-bit signed integers, find x=a/b where ⌊x⌋ denotes the largest integer whichis 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 ≤ a,b < 2^63 • b ̸=0 • The number of tests cases does not exceed 10^4.

Output

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

Sample Input Copy

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

Sample Output Copy

1
-2
-9223372036854775808
9223372036854775808

Source/Category