Using a set number of matches and following specific templates to represent digits, you can form various natural multi-digit numbers. What are the smallest and largest numbers you can create using exactly matches?

A natural number – representing the number of matches (2 \leq K \leq 200).
Answer to the problem.
مثال 1