Problem: You are given an integer of digits , which make up its decimal notation in order from left to right.
Also, you are given a positive integer .
Let's call integer beautiful if for each , such that .
You need to find the smallest beautiful integer , such that .
Input Format: The first line of input contains two integers (): the number of digits in and .
The next line of input contains digits (, ): digits of .
Output Format: In the first line print one integer : the number of digits in .
In the next line print digits (, ): digits of .