Takahashi has decided to distribute N AtCoder Crackers to K users as evenly as possible. Your task is to calculate the minimum possible (absolute) difference between the largest number of crackers received by any user and the smallest number received by any user after the distribution.
Input Format
The first line contains two integers, N and K:
N (0 ≤ N ≤ 10^9): The total number of crackers.
K (1 ≤ K ≤ 10^5): The number of users to whom the crackers will be distributed.
Output Format
Output a single integer: the minimum possible absolute difference between the largest and smallest number of crackers received by users.
Examples
Example 1
Input:
text
10 3
Output:
text
1
Explanation:
The distribution could be as follows:
User 1: 3 crackers
User 2: 3 crackers
User 3: 4 crackers
The maximum is 4 and the minimum is 3. The difference is 4 - 3 = 1.
Example 2
Input:
text
5 2
Output:
text
1
Explanation:
The distribution could be:
User 1: 2 crackers
User 2: 3 crackers
The maximum is 3 and minimum is 2. The difference is 3 - 2 = 1.
Example 3
Input:
text
7 4
Output:
text
1
Explanation:
One possible distribution is:
User 1: 2 crackers
User 2: 2 crackers
User 3: 2 crackers
User 4: 1 cracker
The maximum is 2 and minimum is 1. The difference is 2 - 1 = 1.
Solution Submission
Please implement your solution in the /app/ directory of your project.
Important: place your implementation at /app/solution.py so the verifier can run it.