Problem M
Champernowne Verification
The
Given a positive integer
Input
The first line contains a single integer,
Output
If
Sample Input 1 | Sample Output 1 |
---|---|
123456789 |
9 |
Sample Input 2 | Sample Output 2 |
---|---|
1000000000 |
-1 |
Sample Input 3 | Sample Output 3 |
---|---|
11 |
-1 |
Sample Input 4 | Sample Output 4 |
---|---|
1324 |
-1 |