Problems
065
065
065
Input example #1
7 4
Output example #1
0
Input example #2
-2 8
Output example #2
1
065
7 4
0
-2 8
1