Beautiful Array
Easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Consider the array of length , consisting of positive integers, beautiful, if for any decimal representations of and does not have common digits (for example, if , then can be equal , but it cannot be equal , because the zero can be found in both and ).
For given check if exists the beautiful array of length .
Input
Contains one integer — the length of the array.
Output
Print , if exists the beautiful array of length , and otherwise.
Examples
Input #1
Answer #1
Submissions 1K
Acceptance rate 12%