Sum of digits#193

Sum of digits

1 second
64 megabytes
Easy

Find the smallest and largest -digit natural numbers whose digits sum to .

Input

The input consists of two integers and (1 \leq N \leq 100, 1 \leq M \leq 9N).

Output

Output two -digit numbers in ascending order.

Examples

Example 1

Loading
Loading