Given two integers, and , your task is to find the smallest number greater than that has at least occurrences of the digit '5' in its decimal representation.
The first line of the input contains two integers, and , where (1 \leq N \leq 10^{15},\ 1 \leq K \leq 15).
Print the smallest number that meets the criteria.
Example 1
Example 2
Example 3
Example 4