e-olymp

067

067

Time limit 1 second
Memory limit 64 MiB
Input example #1
7 4
Output example #1
4