eolymp
bolt
Try our new interface for solving problems
Problems

Pretty

Pretty

Time limit 0.4 seconds
Memory limit 256 MiB

Examples

Input example #1
4 42
Output example #1
13
Input example #2
2000 10009
Output example #2
1295