eolymp
bolt
Try our new interface for solving problems

066

Time limit 1 second
Memory limit 64 MiB

066

Examples

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